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

start in Fullscreen-Mode #81

Open
patricktresp opened this issue Mar 17, 2018 · 5 comments
Open

start in Fullscreen-Mode #81

patricktresp opened this issue Mar 17, 2018 · 5 comments
Labels
enhancement help wanted The issue has been reviewed and is valid, and is waiting for someone to work on it. stale Closed due to inactivity or lack or resources

Comments

@patricktresp
Copy link

Hi,

i am not sure, if it is an issue, but i would like to start the videoplayer in Fullscreen mode without having to hit the fullscreen button.
As i was looking through the extended react-native-video module, i found a method
presentFullscreenPlayer();

Unfortunatly, this method is not available, when calling on the react-native-video-player reference

<VideoPlayer ref={r => (this.player = r)} … </VideoPlayer>

componentDidMount(){ if(this.player){ this.player.presentFullscreenPlayer(); } }

Is there any workaround to that or a specific policy i do not know?

Thanks,

Patrick

@patricktresp
Copy link
Author

Nobody wanting this?
i tried to modify the sources to call toggleFullScreen() after it has mounted, but he reference is not available before the isPlaying State...

any hint is appreciated!

@abishekraj
Copy link

Any update on this issue? Would be great if there was a fix for this !

@abdulsami1105
Copy link

Any update on this issue?

@TheDanielMoli TheDanielMoli added enhancement help wanted The issue has been reviewed and is valid, and is waiting for someone to work on it. labels Jun 11, 2020
@henriflouquet
Copy link

I used a setTimeout as a workaround

function onStart(type) {
      setTimeout(() => {              
        player.current.presentFullscreenPlayer()           
      }, 500)  
  }

...

<VideoPlayer ... onStart={() => onStart()} />

Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this issue will be closed automatically.

@github-actions github-actions bot added the stale Closed due to inactivity or lack or resources label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted The issue has been reviewed and is valid, and is waiting for someone to work on it. stale Closed due to inactivity or lack or resources
Projects
None yet
Development

No branches or pull requests

5 participants