apache/cordova-android

iFrame can't go to fullscreen Android

jcrgaprende opened this issue · 3 comments

Bug Report

Problem

iFrame can't go to fullscreen Android

Information

  1. Create a new Cordova project using cordova create iframeTest
  2. Add Android platform: cordova platform add android@10.1.2 (also happen with android@11)
  3. 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>

  1. Run project on physical device using cordova run android
  2. Play YouTube video
  3. Tap on fullscreen button
  4. Nothing happend
  5. Lock Android device
  6. Unlock Android device
  7. 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

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Unable to reproduce on cordova-android@11.

I didn't cordova-android@10.x, since that is out of development.

Screenshot from 2023-03-22 19-00-48

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?

uaza commented

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.