clappr / clappr-level-selector-plugin

Clappr Level Selector Plugin
MIT License
76 stars 56 forks source link

Add level label from NAME attribute if exists #45

Open fuzegit opened 7 years ago

fuzegit commented 7 years ago

Hello. It would be great if the level's name was taken from the NAME attribute from m3u8 index file.

EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=480x853,BANDWIDTH=920000,NAME="480p"

In the level selector display the "480p" instead of "920000".

Thanks!

MasterEvilAce commented 6 years ago

This would be great to have, and expected behavior from a viewer experience.

leandromoreira commented 6 years ago

at least for the playback where we can get this info.

MasterEvilAce commented 6 years ago

I just checked and I was assuming the NAME attribute for EXT-X-STREAM-INF was standard. Looks like it's only required for EXT-X-MEDIA. So it's not always going to exist for variant playlists, but I have seen it a few times, even though it's not recognized as part of the spec.