Constants
String constants
/**
* Default output options for transcoding
* of video into bitmaps.
*/
const ALPHA_BITMAPS_OUTPUT_DEFAULTS = {
format: 'image2',
width: 320,
height: 240,
videoRate: 10,
extension: 'png'
}
/**
* Default output options for transcoding
* of transparent images.
*/
const ALPHA_IMAGE_OUTPUT_DEFAULTS = {
width: 320,
height: 240,
extension: 'png',
format: 'image2',
offset: 0
}
/**
* Default output options for transparent
* media by transcode source.
*/
const ALPHA_OUTPUT_DEFAULTS = {
image: {
width: 320,
height: 240,
extension: 'png',
format: 'image2',
offset: 0
},
bitmaps: {
format: 'image2',
width: 320,
height: 240,
videoRate: 10,
extension: 'png'
},
video: {
options: {
g: 60,
level: 41,
movflags: 'faststart'
},
width: 1920,
height: 1080,
videoRate: 30,
videoBitrate: 2000,
audioBitrate: 160,
audioCodec: 'aac',
videoCodec: 'libx264',
audioChannels: 2,
audioRate: 44100,
g: 0,
format: 'mp4',
extension: 'mp4'
}
}
/**
* Default output options for encoded and
* transcoded video.
*/
const ALPHA_VIDEO_OUTPUT_OPTIONS = {
options: {
g: 60,
level: 41,
movflags: 'faststart'
},
width: 1920,
height: 1080,
videoRate: 30,
videoBitrate: 2000,
audioBitrate: 160,
audioCodec: 'aac',
videoCodec: 'libx264',
audioChannels: 2,
audioRate: 44100,
g: 0,
format: 'mp4',
extension: 'mp4'
}
const COMPOSED_EVENT = {
bubbles: true,
cancelable: true,
composed: true
}
/**
* Default output options by transcode
* source.
*/
const OUTPUT_DEFAULTS = {
audio: {
options: {},
audioBitrate: 160,
audioCodec: 'libmp3lame',
audioChannels: 2,
audioRate: 44100,
extension: 'mp3'
},
bitmaps: {
options: {},
format: 'image2',
width: 320,
height: 240,
videoRate: 10,
extension: 'jpg'
},
waveform: {
options: {},
height: 100,
forecolor: '#000000',
backcolor: '#00000000',
audioBitrate: 160,
audioCodec: 'aac',
audioChannels: 2,
audioRate: 44100,
extension: 'png'
},
image: {
options: {},
width: 320,
height: 240,
extension: 'jpg'
},
video: {
options: {
level: 41,
movflags: 'faststart'
},
width: 480,
height: 270,
videoRate: 30,
videoBitrate: 2000,
audioBitrate: 160,
audioCodec: 'aac',
videoCodec: 'libx264',
audioChannels: 2,
audioRate: 44100,
format: 'mp4'
}
}
const PREVIEWABLE_PROPS = {
label: {},
preview: {
attribute: false
},
head: {
attribute: false
},
icon: {}
}
const SIZE_OBSERVED_PROPS = {
sizeWidth: {
attribute: 'size-width',
reflect: true
},
sizeHeight: {
attribute: 'size-height',
reflect: true
}
}
const SIZE_OBSERVER_PROPS = {
sizeById: {
attribute: false
}
}
const VISI_OBSERVED_PROPS = {
visibility: {}
}
const VISI_OBSERVER_PROPS = {
visibilityById: {
attribute: false
}
}