ozone-media-url
v6.3.6
Published
Ozone helper to build ozone media url
Downloads
499
Keywords
Readme
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())