mediaelement / mediaelement-plugins

Plugins for the main mediaelement project
406 stars 138 forks source link

[Q] Select Quality From Single .mpd? #92

Closed Gungrave223 closed 4 years ago

Gungrave223 commented 7 years ago

Question....is it possible to set up the quality.js plugin to auto generate the quality from the .mpd playlist file?

I'm trying to avoid having to set 20 thousand source for a single video...and want to just uses the different quality videos already created for the mpeg dash stream.

rafa8626 commented 7 years ago

No, this plugin just considers the source tags, not the internals of a manifest file. If you wanna provide a PR to enhance this, I'd be happy to review it

goldensky09 commented 4 years ago

May i know if my m3u8 file has 4 video quality, how to get the quality menu. a small code snippet to explain will help.

Gungrave223 commented 4 years ago

May i know if my m3u8 file has 4 video quality, how to get the quality menu. a small code snippet to explain will help.

It depends on how you created your playlist...I personally use aws media element to convert my mp4 into hls format...

During the conversion process, I have aws create different playback quality for the different bandwidth support...then I have a master playlist that's used to auto switch between the playback quality base on the end user bandwidth...

So to answer your question...there is no code to know if you're .m3u8 file have 4 video quality...it all depends on how you converter your original video into hls format.

karawitan commented 4 years ago

Closing, as the feature has been pushed to master