React-native-youtube: Fullscreen launches always in Landscape on Android

Created on 10 May 2018  路  6Comments  路  Source: davidohayon669/react-native-youtube

Is there a way to force playing the video on Portrait from the beginning on Android? I've tried using react-native-orientation but it ignores it.

All 6 comments

fullscreen = {true}
change it to
fullscreen = {flase}

@Rana-Muhammad-Amir Didn't work for me. Had to move to stand alone player in android.

@Rana-Muhammad-Amir I need it to play it only on fullscreen. I've finally decided to fork the repo and handle the orientation natively customizing the events listeners.

@senthilsivanath What's the stand alone player? link?

@GastonSchWun GastonSchWun
Can you provide the code on how to do it natively

@bhaveshdaswani93 I lost access to that GitHub account but you can see the commits made on the forked repo at that user repo.

Link:

Notes:

  • Be aware I have never updated the repo after those commits.
  • I'm not a JAVA programmer so i can't guarantee it's nice nor following the best practices.
  • I can not share code from the app it self.

I hope it's useful to you :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eshantbist picture eshantbist  路  4Comments

savioseb picture savioseb  路  4Comments

jokopurnomoa picture jokopurnomoa  路  5Comments

webdevbyjoss picture webdevbyjoss  路  4Comments

LorienHW picture LorienHW  路  3Comments