Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen turn off the light while video is playing #2042

Closed
trilam1409 opened this issue Jun 9, 2020 · 0 comments
Closed

Screen turn off the light while video is playing #2042

trilam1409 opened this issue Jun 9, 2020 · 0 comments
Labels
stale Closed due to inactivity or lack or resources

Comments

@trilam1409
Copy link

Bug

Hi everyone. I have an issue. This is the screen turn off the light while video is playing in android device. The screen just turns off light but not turn off screen.

Platform

Which player are you experiencing the problem on:

  • Android ExoPlayer

Environment info

React native info output:

react: 16.11.0 => 16.11.0 
react-native: 0.62.2 => 0.62.2 

Library version: 5.1.0-alpha5

Reproducible sample code

<Video
key={lesson.id}
controls={true}
disableFocus={true}
source={{
uri: lesson.content,
}}
style={Learning.backgroundVideo}
progressUpdateInterval={20000}
onProgress={({seekableDuration, currentTime}) => {
onTracking({duration: seekableDuration, time: currentTime});
}}
onFullscreenPlayerDidPresent={() => {
if (Platform.OS === 'android') {
setFullScreenAndroid(true);
}
return;
}}
onFullscreenPlayerDidDismiss={() => {
if (Platform.OS === 'android') {
setFullScreenAndroid(false);
StatusBar.setBarStyle('dark-content');
}
return;
}}
onLoad={() => {
setLoading(false);
}}
/>

@hueniverse hueniverse added the stale Closed due to inactivity or lack or resources label Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Closed due to inactivity or lack or resources
Projects
None yet
Development

No branches or pull requests

2 participants