mediaelement / mediaelement-plugins

Plugins for the main mediaelement project
405 stars 137 forks source link

Quality switch doesn't work with m3u8 file #198

Open agalindo-init opened 3 years ago

agalindo-init commented 3 years ago

Hello, I am looking for a solution to get the Quality Switch Plugin running with a m3u8 file as source, but no source tags as childs of the video element. My first approach was to get the m3u8 file content, parse it, and render the markup for source elements as shown in the plugin example: https://github.com/mediaelement/mediaelement-plugins/blob/master/demo/quality.html

Actually it works like this to display the quality switcher button, but there is an event where it should use to work without that markup. This event never fires: https://github.com/mediaelement/mediaelement-plugins/blob/master/src/quality/quality.js#L98

But both ways after switching the quality, the quality level changes to -1 (auto) and not the targeted level.

nemesisKO commented 2 years ago

are you found any solution?