WebViews with auto play video show in full screen
See original GitHub issueBug 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:
- Created 4 years ago
- Reactions:2
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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)
In my case setting
mediaPlaybackRequiresUserAction={true}
helped. even though the docs say thattrue
is the default value.