ozone-media-url
TypeScript icon, indicating that this package has built-in type declarations

6.2.6 • Public • Published

NPM version

ozone-media-url

Helper to convert ozone id to media preview

install

$ npm install --save ozone-media-url

OzoneMediaUrl

                import { OzoneMediaUrl, OzonePreviewSize, SizeEnum } from 'ozone-media-url'

                const size = OzonePreviewSize.Small
				const ozoneMediaUrl = new OzoneMediaUrl(data.id, getDefaultClient().config.ozoneURL)
				this.set('previewImage', ozoneMediaUrl.getPreviewUrlPng(size))

OzoneVideoUrl

                import { OzoneVideoUrl} from 'ozone-media-url'

				const ozoneVideoUrl = new OzoneVideoUrl(video, getDefaultClient())
				this.set('videoUrl', await ozoneVideoUrl.getPreferredVideoFormat())

Readme

Keywords

none

Package Sidebar

Install

npm i ozone-media-url

Weekly Downloads

76

Version

6.2.6

License

ISC

Unpacked Size

18.2 kB

Total Files

12

Last publish

Collaborators

  • simonhardy
  • aduchate
  • lomancel
  • dani_rocha
  • hubjac1