googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
450 stars 284 forks source link

Videojs IMA SDK mute icon not updating when videojs.ima.getAdsManager().setVolume(1) #1145

Closed sunilstg closed 3 months ago

sunilstg commented 4 months ago

Hi Everyone, I have added taptounmute on overlay of videojs ima sdk and when user click on it, I am changing the volume using below methods then ima sdk ads controlbar mute icon not updating to volume icon and volume slider baar is also not updating. Can you please check below comnmand and advise how to change the mute icon to volume icon when set volume to 1 in below process -

myvideoplayer.ima.getAdsManager().setVolume(1); myvideoplayer.muted(false); myvideoplayer.volume(1); (edited)

Best regards, Sunil Kumar

Kiro705 commented 4 months ago

Hello @sunilstg ,

I don't think there was a simple function built into this plugin to allow updating the volume with a button press. However, it should be able to work if your button calls the following:

myvideoplayer.ima.controller.setVolume(1);
myvideoplayer.ima.controller.onPlayerVolumeChanged(1);

This should unmute both content and ads, and update the UI accordingly.

Please let me know if you have any additional questions.

Thank you, Jackson IMA SDK team