React-native-video: this.player.presentFullscreenPlayer() auto landscape

Created on 15 Jan 2018  路  1Comment  路  Source: react-native-video/react-native-video

In iOS how can call this.player.presentFullscreenPlayer() and directly rotate to landscape . I have try to use react-native-orientation to Orientation.lockToLandscape(); together when call this.player.presentFullscreenPlayer() , seem not work. There is a function call setFullscreen in RTCVideo.m , does anyone know how to modified so that when trigger this.player.presentFullscreenPlayer() it start from landscape , Thanks you.

Most helpful comment

Hi, here is my solution: https://github.com/mrarronz/react-native-blog-examples/tree/master/Chapter7-VideoPlayer/VideoExample.

also use react-native-orientation to force rotate screen, I implement full screen mode myself, because presentFullscreenPlayer() does not work on android.

>All comments

Hi, here is my solution: https://github.com/mrarronz/react-native-blog-examples/tree/master/Chapter7-VideoPlayer/VideoExample.

also use react-native-orientation to force rotate screen, I implement full screen mode myself, because presentFullscreenPlayer() does not work on android.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RZulfikri picture RZulfikri  路  3Comments

zachrnolan picture zachrnolan  路  3Comments

wang777777 picture wang777777  路  3Comments

afilp picture afilp  路  3Comments

nachumFreedman picture nachumFreedman  路  3Comments