googleads / videojs-ima

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

Videojs IMA SDK get/set volume and mute/mute on player volume change #901

Closed sunilstg closed 4 years ago

sunilstg commented 4 years ago

Hi,

I have tried a lot but not able to find the solution where I can do change volume of player and same need to update on vidoejs ima sdk ads volume along with mute/unmute.

However I have tried below two params and it is doing unmute video but controlbar UI not updating. player.ima..controller.onAdMuteClick(); // Button changes from mute to unmute but yellow bar not increased as per volume.
player.ima.controller.setVolume(0.8); // Nothing changes on controlbar UI.

Please advise main methods where I can do mute/unmute and set/get volume for Videojs IMA Ads.

Thanks

arnaudcasame commented 4 years ago

Hi,

Our Videojs-IMA plugin samples has volume change, mute and unmute already implemented, you can take a look and play around with them here

sunilstg commented 4 years ago

Hi,

Thanks a lot for your valuable time and support. Can you please advise the function name where I can update mute and unmute to ads along with videojs player instance. i.e. player.ima(options); player.volume=0.6; can this volume be changed to ads also.

One more things, I have added tap to unmute button on top video player so when ever user click on tap to unmute button it should unmute both videojs and ads ima so please share the function/methods name where I can do control both volume from one common function.

Also can you please advise how to serve custom midroll? i.e. on 30 seconds of video play back I want to request midroll ads so please advise on this.

Best regards, Sunil

On Tue, Apr 21, 2020 at 2:58 AM Arnaud Casamé notifications@github.com wrote:

Hi,

Our Videojs-IMA plugin samples has volume change, mute and unmute already implemented, you can take a look and play around with them here https://googleads.github.io/videojs-ima/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/googleads/videojs-ima/issues/901#issuecomment-616819544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS2BSLGFINXLL7I2QH7FDTRNS5BBANCNFSM4MG3BZ5Q .

arnaudcasame commented 4 years ago

Hi @sunilstg,

The videojs-ima plugin already takes care of muting and unmuting the ad playback when a user tap on the speaker icon. You can use VMAP to serve midroll but you would have to configure your timeOffset attribute so that your mid-roll can show after 30 seconds. Feel free to reach out to the Ad Manager Support team so they can help you with the server-side settings.