0.1.2 • Published 8 months ago

@instructure/studio-player v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

studio-player

Sources

  • sources renamed to src: can be an url or an array of objects with the following props:
    • src type width height
  • instead of label you have to provide the width and height, 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 to captions
  • id and kind is not used
  • type should be the subtitle format, vtt or srt

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
0.1.2

8 months ago

0.1.1

8 months ago