fix(android): keep screen on on fullscreen (#3563)
add KEEP_SCREEN_ON flag when video is fullscreen & playing to avoid phone to go off.
inspired by 2d8466128d
This commit is contained in:
@@ -790,6 +790,7 @@ class VideoPlayer extends Component {
|
||||
selectedTextTrack={this.state.selectedTextTrack}
|
||||
selectedAudioTrack={this.state.selectedAudioTrack}
|
||||
playInBackground={false}
|
||||
preventsDisplaySleepDuringVideoPlayback={true}
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
|
Reference in New Issue
Block a user