@instructure/studio-player
v0.2.3
Published
Next generation media player for Instructure
Downloads
5,365
Maintainers
Keywords
Readme
studio-player
Sources
sources
renamed tosrc
: can be an url or an array of objects with the following props:src
type
width
height
- instead of
label
you have to provide thewidth
andheight
, this is important, because the player will be able to collect the qualities based on these.
example:
[
{
src: 'my-video1.mp4',
type: 'video/mp4',
width: 1920,
height: 1080,
},
{
src: 'my-video2.mp4',
type: 'video/mp4',
width: 1280,
height: 720,
},
];
Captions
tracks
has been renamed tocaptions
id
andkind
is not usedtype
should be the subtitle format,vtt
orsrt
example:
[
{
src: 'my-captions-en.srt',
label: 'English',
language: 'en',
type: 'srt',
},
{
src: 'my-captions-es.srt',
label: 'Spanish',
language: 'es',
type: 'srt',
},
];
Deprecated props compared to old Media Player
these props are no longer used and you can remove them from the code:
onLoadedMetadata
captionPosition
autoShowCaption