React-native-webview: WebViews with auto play video show in full screen

Created on 21 Nov 2019  路  1Comment  路  Source: react-native-webview/react-native-webview


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
bug report

Most helpful comment

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)

>All 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)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BruceSuperProgramer picture BruceSuperProgramer  路  3Comments

ru88s picture ru88s  路  3Comments

celciusjj picture celciusjj  路  3Comments

Kelvin9393 picture Kelvin9393  路  3Comments

TheMakerOleguch picture TheMakerOleguch  路  3Comments