kulyk / react-native-android-wv-video

Android WebView component supporting playing HTML5 videos at fullscreen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Full-Screen goes blank when playing video in full-screen

rikinshah23 opened this issue · comments

Hello,
I am using this package it helps with full screen video playing on android devices. There are 2 problem that I would like to ask:

Issue 1 -
My code is -

<AndroidWebView
ref="videoView"
scalesPageToFit={true}
javaScriptEnabled={true}
allowsInlineMediaPlayback={true}
//ignoreSslError={true}
source={{uri: item.node.newsUrl + '&fs=1'}}
/>

When I click on Full screen button it start video in landscape mode in full-screen. but after 1 second or 2 my screen goes blank and no turning back from there. I have to kill the app.

CSS:
newsVideo: {
overflow: 'hidden',
alignSelf: 'center',
width: deviceWidth,
height: 225,
borderRadius: 0,
marginTop: 0,
borderColor: 'transparent',
},
Please suggest a solution if you can think of any. Thanks.

Issue 2 - I would like to know if there is any way to get data when I click on this webview, basically detect the click on video.

Thanks