apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.65k stars 1.54k forks source link

iFrame can't go to fullscreen Android #1560

Open jcrgaprende opened 1 year ago

jcrgaprende commented 1 year ago

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

breautek commented 1 year ago

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 1 year ago

On my test devices, the error only occurs on Samsung Androids.

hadisuria commented 1 year ago

I also have the same problem on some devices.

I you rotate the screen after pressing fullscreen button then video start playing in fullscreen.