react-native-youtube icon indicating copy to clipboard operation
react-native-youtube copied to clipboard

Controls for fullscreen

Open yeong0809 opened this issue 5 years ago • 4 comments

import YouTube from "react-native-youtube";

Is there any way for us to hide the controls for fullscreen mode? Or can we detect the top left cross button, because for now the cross button will trigger the "paused" state in onChangeState()?

Simulator Screen Shot - iPhone X - 2019-10-17 at 12 08 46

yeong0809 avatar Oct 17 '19 04:10 yeong0809

@yeong0809 what is the problem? is it not really pausing?

davidohayon669 avatar Nov 15 '19 19:11 davidohayon669

@davidohayon669 I also faced this issue. The problem is that when top left cross button is clicked the video state changes to paused. What this button should trigger is some other state as closed or perhaps you'd think this has nothing to do with state but should rather trigger another prop like onClose. The way it works now there is no way to differ a real paused state when user click pause control from the player close intent. So it is impossible to properly exit player screen and it stays black

ygrishajev avatar Jun 25 '20 06:06 ygrishajev

same here, we would also like to know when the user pressed the fullscreen close button. Has anyone found a solution or hack for this problem?

DanielLeberle avatar Sep 07 '20 12:09 DanielLeberle

@DanielLeberle as a temporal workaround I've added a close button so user could at least close the view after seeing a screen behind the video view. Hope to see a real solution from the maintainer.

ygrishajev avatar Sep 07 '20 13:09 ygrishajev