How to make in-stream ads show in youtube JavaScript iframe player - iframe

I have an embedded youtube iframe player in my html to play some youtube video, but I found that there are no in-stream ads when playing the video with my iframe player, no matter pre-roll or mid-roll, and those youtube videos will show ads when playing on youtube app or youtube website.
Can somebody help figure out the reason or tell me how to make the in-stream ads show in youtube iframe player?
thanks

Related

Hide "Watch on Youtube" from thumbnail in embeded youtube iframe before playing

I embeded youtube video using iframe with autoplay off.
Before play, it shows "Watch on Youtube" image at bottom of thumbnail along with Play icon at center of thumbnail.
How to remove this watch on youtube.
css apepars to be .ytp-impression-link but its inside iframe.
Thanks
Welcome to Stack Overflow .. After a lot of research I did not find answer but I find stuff like below :
First : You can hide content inside iFrame using JavaScript (Like This Answer or This)
Second : Why we cannot hide Watch on YouTube in Youtube iFrame .. Reason : There is something called Cross Site Scripting which it not allowed on all Major Browsers it is only allowed if the iframe on your own (Like iFrame Src="index.html" not Src="youtube.com" in your domain not other domain) So in case of Youtube we cannot hide it .. Sorry
Attribution for #MinhNhậtPhan in (https://stackoverflow.com/a/46700903/14945696) for information About Cross Site Scripting .. That is All.

How to remove more videos div in youtube api embed code

I have a issue in my website. I have integrated Youtube api embed script code.
When I pause video "ytp pause overlay" div showing there. I need to hide that when I pause that video.

RevSlider Youtube video mute delayed

I have a WP site with Revolution Slider auto-playing a full-screen YouTube video on the homepage.
I selected the mute option for the video in the settings, however, the audio plays for 1 second on load! It literally sounds like a glitch.
How do I fix this?

How to make youtube video added in the iframe accessible?

Please advise on how to make Youtube video embedded inside iframe accessible
Find your video on YouTube and go to Share>Embed copy the code.
You code should look like this:
<iframe src="https://www.youtube.com/embed/your-video-code"></iframe>

YouTube autoplay does not work anymore

Today I found that my youtube videos embeded in iframe does not autoplay
for example.
http://www.youtube.com/embed/U3NVhtUhMbM?autoplay=1
is the autplay deprecated?
plus previously when pressing share button on youtube, it had autoplay parameter, now it's gone
There is a known issue with YouTube API.
Star this issue to get updates on it.

Resources