Giter Site home page Giter Site logo

Comments (8)

cornedor avatar cornedor commented on July 4, 2024

You might want to use resizeMode="cover". If not, could you give an example of what you want?

from react-native-video-player.

tarun29061990 avatar tarun29061990 commented on July 4, 2024

Thanks you

from react-native-video-player.

tarun29061990 avatar tarun29061990 commented on July 4, 2024

Some parts of the video is getting clipped when using resizeMode="cover". Please help

from react-native-video-player.

cornedor avatar cornedor commented on July 4, 2024

Can you give an example of the result you want?

from react-native-video-player.

tarun29061990 avatar tarun29061990 commented on July 4, 2024

This is the video I am recording:
whatsapp image 2016-11-02 at 10 24 59 am

And when I play it:
whatsapp image 2016-11-02 at 10 25 00 am

So the video is getting clipped. Below is my code for the video player:

<VideoPlayer
          thumbnail={{uri: this.props.data.videoUrl.split('//')[1] }}
          video={{uri: this.props.data.videoUrl.split('//')[1] }}
          duration={this.props.data.duration}
          style={styles.backgroundVideo}
          resizeMode={"cover"}
        />

from react-native-video-player.

cornedor avatar cornedor commented on July 4, 2024

Are you sure that it is not in the video file? The camera preview in Android sometimes has a different resolution than the output file. I've had issues with this myself.

from react-native-video-player.

tarun29061990 avatar tarun29061990 commented on July 4, 2024

I have played this video file in VLC and its perfect. There is no problem with the video file. The flow is I am recording a video, storing it locally and then playing it in the next view. I think there is some problem with the dimensions of the video. Can you suggest something?

from react-native-video-player.

cornedor avatar cornedor commented on July 4, 2024

Could you share that video so I can test with it?

On Fri, Nov 4, 2016, 07:33 Tarun Chaudhary [email protected] wrote:

I have played this video file in VLC and its perfect. There is no problem
with the video file. The flow is I am recording a video, storing it locally
and then playing it in the next view. I think there is some problem with
the dimensions of the video. Can you suggest something?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#5 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAizua3t_mcj7QIIG2NAeGECvbNwPbSzks5q6tGigaJpZM4KeP1o
.

from react-native-video-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.