-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ads in the player #4481
Comments
Unfortunately, we never implemented that. I would be happy to discuss the design with you if you want to be part of the solution to extend it. Currently, this is not on our roadmap. Unless you are interested in the work, I think we should remove that mention from the docs. |
Okay, thanks for the response |
"TypeError: Cannot read properties of null (reading 'isLinear') When I tried to follow your tutorial, I am getting this error above. My questions: We can request ads anytime during the presentation? |
It's hard to say without the full stack trace, but that As to your questions,
|
Thanks, @theodab for the response Can you send me any adsTagURl that is working because I am using the ads URL from this google sample source: None of them are working for me!! It also gives me an error when I run it on localhost. Does it require only https? |
The ad tag URIs we are using for demo content are here: shaka-player/demo/common/assets.js Lines 56 to 76 in 8475214
I'm... not sure where they come from, to be honest. I didn't make the ad stuff. I assume they are some kind of sample ads. It should work when hosted on localhost. I test things over localhost, most of the time. |
Did the fix made by you resolve the problem of |
@hiren3897, please try again with the latest source from the |
Hello @joeyparrish, The error seems to be resolved but I am not able to see the ad on the player. requestAds() {
this.adManager.initClientSide(this.clientSideAdContainer, this.video_);
const adsRequest = new google.ima.AdsRequest();
// Your ad tag url should go here. We are using a sample ad tag from the
// IMA HTML5 SDK implementation guide for this tutorial.
adsRequest.adTagUrl = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640x480' +
'&iu=/124319096/external/' +
'single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&' +
'unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%' +
'3Dlinear&correlator=';
this.adManager.requestClientSideAds(adsRequest);
} If I debug my DOM elements, I do have contents in But the ad doesn't play!! |
It was an issue of cors but the bug has been resolved!! I am not able to request multiple ads in the player. For example, I want to display 3 ads in the player at any time during the video is played. Can you tell me how can I do that with the cue points on the UI? I tried to request the ads but the second request doesn't work. |
Have you read the Tutorials?
YES
Have you read the FAQ and checked for duplicate open issues?
YES
What version of Shaka Player are you using?
3.2
Please ask your question
Can you please give me a quick brief on inserting the ads in the shaka-player?
I have already read this documentation: https://shaka-player-demo.appspot.com/docs/api/tutorial-ad_monetization.html
It says after v3.1+ shaka player will support other ads providers, do we have it as we can see we have 4.2 released?
If yes, how we should integrate that?
The text was updated successfully, but these errors were encountered: