Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

videoPlayer don't resize on landscape mode #18

Open
RedYggdrasil opened this issue Jan 25, 2018 · 3 comments
Open

videoPlayer don't resize on landscape mode #18

RedYggdrasil opened this issue Jan 25, 2018 · 3 comments

Comments

@RedYggdrasil
Copy link

RedYggdrasil commented Jan 25, 2018

the video player don't seam to resize correctly with the parent view on landscape view for some reason.
I tried different things, even putting the videoPlayer at the root of my application but the videoplayer don't fit the height of the screen, it goes below it.

example scenario at root :
Texted on expo with a galaxy S8

<View style={{flex : 1}}>
        <VideoPlayer
          videoProps={{
            shouldPlay: true,
            resizeMode: Video.RESIZE_MODE_CONTAIN,
            source: {
              uri: defVid.link,
            },
          }}
          isPortrait={true}
          playFromPositionMillis={0}
          key={defVid.uvid}
        />
</View>

the result is a part of the video under the bottom of the screen on landscape mode, (but perhaps landscape is not the real deal here).

@thomprycejones
Copy link

Did you get this working?

@RedYggdrasil
Copy link
Author

Played around, also I had to modify the VideoPlayer to manually set my ratio, but I eventually get something close enough to what I wanted, didn't remember all the little details of the process.

@baselbj
Copy link

baselbj commented Jun 28, 2018

@RedYggdrasil can you please provide us with your solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants