xuyuanzhou / react-native-yz-vlcplayer

VLC Player for react-native
MIT License
152 stars 52 forks source link

VLCPlayerView not working, white screen only showing #5

Closed bavuvanet closed 6 years ago

bavuvanet commented 6 years ago

Dear xuyuanzhou,

I used VlCPlayer and it run ok. But i try use VlCPlayerView is not working. Phone display white screen. Below is my code:

<VlCPlayerView autoplay={true} url="http://cdn.goluk.cn/video/t1_2.mp4" Orientation={Orientation}
//BackHandle={BackHandle} ggUrl="" showGG={false} showTitle={true} title="Test video" showBack={true} onLeftPress={()=>{}} startFullScreen={() => {
this.setState({ isFull: true, }); }} closeFullScreen={() => { this.setState({ isFull: false, }); }} />

bavuvanet commented 6 years ago

Dear xuyuanzhou, I try again, reason is i place VLCPlayerView into container view. I remove container view and make VLCPlayerView is parent view, then run ok. Thanks very much :)