0

I'm building a chrome extension that has some embedded videos available. I'd like for them to be able to go fullscreen, but it doesn't seem to be working.

Here is what I've tried based on some other post's resolutions. Yet still clicking full screen doesn't do anything.

 <iframe width="468" height="263" src="https://www.youtube.com/embed/KnzFc0ln2do?rel=0&fs=1" frameborder="0" webkitallowfullscreen allowfullscreen></iframe>
acwr
  • 59
  • 1
  • 7
  • You can do it without Youtube API by adding the PHP variable `&autoplay=1` to the `src` attribute of your ` – Dayton Wang Jun 01 '15 at 17:54
  • @Gui47 I tried to code you linked without success. The video just autoplays without going fullscreen. – acwr Jun 03 '15 at 15:10
  • What error are you having? – Dayton Wang Jun 03 '15 at 16:50
  • @gui47 When I click the 'Play in fullscreen' button, the video beings playing but doesn't go fullscreen. This is an embedded video within a chrome extension. I'm not sure why it doesn't work. – acwr Jun 04 '15 at 18:13
  • When you inspect popup in the console, any error is showing up? – Dayton Wang Jun 04 '15 at 18:22
  • @gui47 The only error I get is a failed to load resources one, which looks unrelated to the video. – acwr Jun 05 '15 at 20:22

0 Answers0