brandly / angular-youtube-embed

:tv: Embed a YouTube player with a simple directive
http://brandly.github.io/angular-youtube-embed/
MIT License
510 stars 147 forks source link

Append a div to the player when player goes fullscreen #147

Open aashkafirst opened 7 years ago

aashkafirst commented 7 years ago

I want to append a div to the player when the player goes fullscreen such that the player alongwith the div is visible on fullscreen. I tried the following:var iframe = player.getIframe(); iframe.append('<div style="color:green;">hiiiiiiiiiiiiiiiiiiiiiiiii</div>'); var requestFullScreen = iframe.requestFullscreen || iframe.mozRequestFullscreen || iframe.webkitRequestFullscreen; if (requestFullScreen) { requestFullScreen.apply(iframe) } but nothing happens. Thanks in advance for any help

ridakadri14 commented 7 years ago

getting same issue