@carlotagd wrote:
Hi!
I’m trying to get the bitrate value of a video when a user change its quality.
I’m using:kpd.kBind('switchingChangeComplete', function (newBitrate) { console.log(newBitrate); });
or
kpd.kBind('switchingChangeComplete', function () { console.log(arguments[0]); });
and it seems like the value that this function returns, is the previous one (If I had 360p selected, when switching to 480p the triggered event reports the bitrate corresponding to 360p quality)
Is there any solution for this? Am I triggering the wrong event?Also, I experimented that in chrome console, the method
kdp.currentBitrate
is working perfectly, returning the right value, but when I put it on the js script, the return value is undefined.Can you help me with this?
Thank you so much for your help.
Posts: 1
Participants: 1