Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-native-video is not playing on android #15

Open
akashdk opened this issue Jun 5, 2018 · 1 comment
Open

React-native-video is not playing on android #15

akashdk opened this issue Jun 5, 2018 · 1 comment

Comments

@akashdk
Copy link

akashdk commented Jun 5, 2018

Hello, @browniefed I really appreciate your work at codedaily. It is a great tutorial.
I'm a react native beginner.I'm trying to play a basic video using react-native-video I get nothing only a blank screen is appear.is the version is a bug ? or android simulator is not working well? I have no clue.
Thanks!

@AshishCd
Copy link

AshishCd commented Apr 5, 2019

hello @akashdk you need to provide width and height in style otherwise you cant see anything.
see below how i added style, you can add the same

<Video 
                    paused = {this.state.paused}
                    source={{uri:`${Uri}`}}
                    resizeMode="cover"
                    style={{width:"100%", height: 250,}}
                    onError={this.handleError}
                    onLoad = {this.handleLoad}
                    onProgress = {this.handleProgress}
                    onEnd = {this.handleEnd}
                    ref = {ref=>this.player = ref}
                />     

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

No branches or pull requests

2 participants