You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
Can we add ad at multiple times in a one video
because when i am using it second time , its giving me error, i dont know whats wrong,Please help me out of this !
Here is my code snippet
Its is working only one time . i have to display ad as a preroll , mid roll and post roll , but when i use it second time it occurred this error
TypeError: player.ads is not a function
Please help me
The text was updated successfully, but these errors were encountered:
So the .ads is actually an object created by videojs.ads.js and thus would result in a JS error if you're trying to call it as a function. To get around that, you need to load it as a plugin for the VideoJS player:
Can we add ad at multiple times in a one video
because when i am using it second time , its giving me error, i dont know whats wrong,Please help me out of this !
Here is my code snippet
player.ads();
player.vast({
url: http://videoads.theonion.com/vast/270.xml';
});
Its is working only one time . i have to display ad as a preroll , mid roll and post roll , but when i use it second time it occurred this error
TypeError: player.ads is not a function
Please help me
The text was updated successfully, but these errors were encountered: