BitRate value displays 0 on Safari 11.0.2 for visualQuality
Hi JWPlayer team,
I need to keep tracking the resolution of the HLS video visualQuality while playing the video. I started using BitRate value of the "visualQuality" data object. It works fine on Chrome/FireFox/IE which displayed the correct BitRate value (different from 0) for high resolution and low resolution video. But It always displays "0" BitRate value on Safari for high resolution and low resolution.
What is a reliable value that JWPlay support for tracking the video resolution ? Could you please figure this out why Safari does not display the BitRate data ?
Safari has built-in support for HLS playback, so our player simply passes the <video> tag over to Safari and they play the video. This is why we do not have all the reporting or metadata available in the player.
One thing you can try is setting hlsjsdefault: true as this will force the player to use our built-in provider in Safari. Please see https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/configuration-reference/ for more details.
Thank you for your quick response. I have tried the setting ( hlsjsdefault: true ) but it's still giving me "0" for the BitRate value on Safari. So, I would try to use another reliable value for tracking the resolution of the video.
That's awesome Todd. I have set "safarihlsjs: true" to the jwplayer config and it works. I am seeing the bitrate in the response object on Safari. Thank you so much for your helps.
When I set "safarihlsjs: true", it worked on Safari Mac (desktop or laptop version 11.0.2 + 11.0.3). But I still have got the same issue that I haven't seen the bitrate in the response object for on(‘visualQuality’) on Safari iPad (iOS version 9.3.5) or Safari iPhone. Could you please take a look on the iPad or iPhone ? Please let me know if there is anything.
If “safarihlsjs: true” does not work on iOS, then we will not have a way to fix this. It sounds like iOS Safari does not give us this data as the video is playing.