cordova-android icon indicating copy to clipboard operation
cordova-android copied to clipboard

iFrame can't go to fullscreen Android

Open jcrgaprende opened this issue 2 years ago • 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 [email protected] (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

  • [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

jcrgaprende avatar Feb 13 '23 18:02 jcrgaprende

Unable to reproduce on cordova-android@11.

I didn't [email protected], 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?

breautek avatar Mar 22 '23 22:03 breautek

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

uaza avatar Mar 24 '23 06:03 uaza

I also have the same problem on some devices.

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

hadisuria avatar Mar 29 '23 03:03 hadisuria