Skip to content

Conversation

@Ponywka
Copy link

@Ponywka Ponywka commented May 21, 2023

Support for MPEG-DASH files:
firefox_HfNhOTq6GN

Demo

TODO List:

  • Auto quality switch
  • Change video tracks
  • Change audio tracks
  • Change caption tracks (from MPD)
  • label attribute support
  • Add support in all built-in plugins
  • Testing some MPD files from DASH Reference
  • Testing of all providers before merge
  • Comment all changes
  • Preview page
  • sources.change support
  • Lint all changed files

Usage:

const source = 'dash/manifest.mpd';
const dash = dashjs.MediaPlayer().create();
const video = document.querySelector('video');
dash.initialize(video, source, false);
const player = new Plyr(dash, {
  quality: {
    allowOverwrite: true,
  },
  i18n: {
    audioTrackLabel: {
      audio_eng_comments: "English (Comments)",
      audio_eng_hasbro: "English (Original)",
      audio_rus_karusel: "Русский (Карусель)",
    },
    videoTrackLabel: {
      video_h264: "Codec H264",
      video_vp9: "Codec VP9"
    },
  },
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant