expo / videoplayer

Customizable controls for Expo video
84 stars 83 forks source link

Resize VideoPlayer in screen #40

Open 13arturbruno opened 6 years ago

13arturbruno commented 6 years ago

I need resize VideoPlayer how component Video, its posible.

<View style={{alignItems: "center",padding:10, width: deviceWidth - 40, height:180, backgroundColor:'#fff'}}> <Video source={{ uri: url }} shouldPlay resizeMode="cover" useNativeControls style={{ width: deviceWidth - 60, height:150}} />

can resize VideoPlayer component ? i cant

13arturbruno commented 6 years ago

Transform this code in VideoPlayer

nickolas52468 commented 6 years ago

can you show me how the Video has been resized and centralized with this? cause Video from Expo in my app it´s not resized, the video play in your nativeSize .or something, inside de

Beissner commented 5 years ago

Trying to resize the video display to fit inside a card component. Is it possible to set height and width dimensions?

cruzach commented 5 years ago

Hi everyone- this repo isn't maintained anymore, so we suggest using https://github.com/ihmpavel/expo-video-player instead (we actually point to this repo anyways in the Expo Video docs)