After I add option autoplay of youtube ,I can't see the ads -
when write youtube iframe tag autoplay this,
<iframe width="560" height="315" src="https://www.youtube.com/embed/t_gcnf9-qw0?showinfo=0" frameborder="0" allowfullscreen></iframe>
i can see ad while video playing but, when
<iframe width="560" height="315" src="https://www.youtube.com/embed/t_gcnf9-qw0?showinfo=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
i can't see ads. added autoplay=1.
how can see ads autoplay ?
i don't see error code. may check documentation shows how set autoplay
properly. noted in mobile browsers (such chrome , safari), html5 element allows playback take place if it's initiated user interaction (such tapping on player). stated in link, functions , parameters such autoplay
, playvideo()
, loadvideobyid()
won't work in mobile environments due restriction.
Comments
Post a Comment