catalyst / moodle-local_smartmedia

Moodle LMS Smartmedia local plugin
Other
6 stars 5 forks source link

Mpeg dash / MPD support flaky on Firefox #224

Open matthewhilton opened 1 year ago

matthewhilton commented 1 year ago

.mpd / Mpeg dash files are not natively supported on Firefox (they are on chrome). VideoJS is meant to allow support for these via their libraries, but these don't seem to work 100% of the time.

When a videojs <video> tag gets created, it gets two sources added, a .m3u8 and a .mpd. It seems through testing that the ordering of these is more or less random.

If the .mpd is the first source, though, in Firefox when the user plays the video they will get an infinite spinner. They can escape this by just clicking anywhere on the timeline to jump to that part of the video, which seems to fix videojs and get the .mpd file playing in Firefox.

Ideally Videojs would just work but this is managed part of Moodle core and is a bit of a beast to fix / make changes to.

Another option is to add a config to local_smartmedia or filter_smartmedia to turn off encoding to mpd / not show .mpd files if using firefox.