cordova-android
cordova-android copied to clipboard
iFrame can't go to fullscreen Android
Bug Report
Problem
iFrame can't go to fullscreen Android
Information
- Create a new Cordova project using cordova create iframeTest
- Add Android platform: cordova platform add [email protected] (also happen with android@11)
- Add this code to index.html, inside body tag:
<iframe id="ytplayer" type="text/html" width="352" height="198" src="https://www.youtube.com/embed/M7lc1UVf-VE" frameborder="0" allowfullscreen></iframe>
- Run project on physical device using cordova run android
- Play YouTube video
- Tap on fullscreen button
- Nothing happend
- Lock Android device
- Unlock Android device
- Now seen full screen mode
What is expected to happen?
See video in fullscreen mode
What does actually happen?
iFrame can't go to fullscreen Android
Version information
Cordova CLI: 11.1.0 Cordova Android Platform: 10.1.2 (also happen with platform version 11)
Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Unable to reproduce on cordova-android@11.
I didn't [email protected], since that is out of development.
Also tested on my physical device with no prevail. It has the same behaviour as the emulator.
Are you able to provide a sample reproduction app?
On my test devices, the error only occurs on Samsung Androids.
I also have the same problem on some devices.
I you rotate the screen after pressing fullscreen button then video start playing in fullscreen.