Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPEG-DASH Support #2690

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open

MPEG-DASH Support #2690

wants to merge 40 commits into from

Conversation

golandprog
Copy link

@golandprog golandprog 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