When using Apple Live Streaming in Safari, is there any way to detect the current bitrate with Javascript? Alternatively, can I detect which element of the .m3u8 is being played?
I've looked at the HTMLMediaElement Class Reference, but found no clues there. The src property always references the .m3u8 file, so that doesn't help.
It looks like the WHATWG is trying to address that very concern. See their document about HTML5 video metrics here: http://wiki.whatwg.org/wiki/Video_Metrics
Using the Safari web developer tools, you can see that Webkit has implemented the following properties on the HTMLVideoElement:
There isn't much documentation out there about these, but I found some sample code that might be helpful.
I'd be very interested to hear if these properties worked for you. Please post your feedback if you gain any insight.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With