question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebViews with auto play video show in full screen

See original GitHub issue

Bug description: When the URL accessed has an autoplay video this is automatically shown full screen. Having tried the mediaPlaybackRequiresUserAction this stops the autoplay, however, it then doesn’t even show within the web page.

To Reproduce: Go to any URL via the webview that has an autoplay video.

Expected behavior: To be able to pass props to disable, more specifically the mediaPlaybackRequiresUserAction

Environment:

  • OS: iOS
  • react-native version: 0.60.5
  • react-native-webview version: 7.0.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

24reactions
philipp65commented, Nov 25, 2019

Please take a look at https://github.com/react-native-community/react-native-webview/blob/master/docs/Reference.md#allowsinlinemediaplayback

allowsInlineMediaPlayback={true} should do the trick

(Should be true by default imho)

8reactions
MartinZemanikcommented, Nov 1, 2021

In my case setting mediaPlaybackRequiresUserAction={true} helped. even though the docs say that true is the default value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebViews with auto play video show in full screen · Issue #1035
WebViews with auto play video show in full screen #1035 ... Go to any URL via the webview that has an autoplay video....
Read more >
android webview playing video with automatically fullscreen
I find that on the 2.3. 3(HTC), when i start playing the video, it automatically goto fullscreen mode, but on my nexus 4,...
Read more >
Autoplaying video in WKWebView on iOS 10+ - Thomas Visser
If you don't do this, a fullscreen player will take over the screen as soon as the video starts playing, which should be...
Read more >
Webview: Background video not working, video auto-plays ...
Fistly, background video doesn't play. Smaller on-screen videos that should autoplay inline, go fullscreen immediately.
Read more >
Responsive or full screen video - Get Help - Adalo - Forum
I am just wanting a welcome video to show within the app before moving to the home page. ... make it fullscreen and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found