Closed spormeon closed 4 years ago
disableAdControls
was added in version 1.8.0, can you confirm that you are on this version or higher?
Here is the commit that added the feature (commit)
yep as put above, updated to 1.8.0
Can you verify that the ima-controls-div-showing
class is not being added to your ad controls div?
I was able to see disableAdControls
work on my test app
this?
just a thought, but is there a conflict with showControlsForJSAds: true, which I also have set, one cancelling the other out sort of idea?
Hello @spormeon ,
The way disableAdControls
works can be seen here in ad-ui.js. It will add the ima-controls-div-showing
class only if disableAdControls
is false.
For this to work it is important that there is a corresponding ima-controls-div-showing
class in your css, like in videojs.ima.css.
showControlsForJSAds
works by hiding the controls if the ad's content type is application/javascript
, here in ad-ui.js. Note this will only happen for VPAID ads or javascript based ads.
I have verified these are working as intended, would it be possible for you to share steps to reproduce, or code snippets to help me reproduce the issue?
the css item is there:
seems there is something else wrong then, as disableAdcControls is set to true, and there no div showing, but controls are still there when you float over the ad
what other code snippets do you need?
In your previous comment showing the dom, I do not see the class ima-controls-div-showing
being added. This is expected behavior. Please see the attached image of my player with ads playing and controls not showing. This is the same state when it is moused over.
If your issue persists, please share any relevant code or steps I would need to reproduce the issue, including ad-tags and specific browsers the error is visible on.
test page here: https://ads.vsvl.co.uk/pub000017/index.outside.html
Hello @spormeon ,
Looking at your test page, the file named videojs.ima.min1.8.0.js
is actually version 1.7.5. If you search within the file, you will see var n="1.7.5"
indicating the version number. I am not sure how this could have happened, but updating your videoJS-IMA to v1.8.0 should resolve the issue.
Please let me know if that resolves your issue.
better check your zip file for 1.8.0. got a school boy error lol
you def got something wrong, you now have 1.8.0 in the 1.8.1 download zip file
Thanks for surfacing this issue. I had been testing through the npm version and not the zip file.
Latest zip files should now contain the latest version.
Can you confirm if disableAdControls
is working for you?
i updated to 1.8.0 and am trying to turn off controls in effect with: i'm presuming this is the right way to do it, juts add to the imaOptions as again, I can't see any info anywhere showing where to put etc