Respond to Virtual Android WebView Vimeo Player Disapearing Control Panel

So, I ran into the React Native WebView problem on Android, where the page containing the Vimeo video loaded, and I could play the video, but the control will disappear in the end, and I will not be able to control it later (pause, etc.).

I did some debugging and found a (hacked) solution, so I would like to share my findings:

0
source share
1 answer

Here are my findings:

  • WebView , 18 player.js, https://f.vimeocdn.com/p/2.68.16/js/player.js:
    [Deprecation] 'HTMLVideoElement.webkitSupportsFullscreen' is deprecated. Please use 'Document.fullscreenEnabled' instead. /.

  • , , .

  • , Android, , . , Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A5000 Build/NMF26X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/64.0.3282.137 Mobile Safari/537.36, Android, .

, , " " ( ).

, , Vimeo ( ), , , . , -, player.js.

0

Source: https://habr.com/ru/post/1015917/


All Articles