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

rate does not work on Android #886

Closed
smartliuliu opened this issue Dec 29, 2017 · 9 comments
Closed

rate does not work on Android #886

smartliuliu opened this issue Dec 29, 2017 · 9 comments

Comments

@smartliuliu
Copy link

smartliuliu commented Dec 29, 2017

<Video
ref={(video) => { this.video = video; }}
style={styles.videoComponent}
rate={this.state.rate}
source={{ uri: playRealUrl }}
paused={!isPlay}
resizeMode={!isIOS && is43 ? 'stretch' : 'contain'}
onLoad={status => this.onLoad(status)}
onProgress={status => this.onProgress(status)}
onBuffer={() => this.onBuffer()}
onEnd={() => this.onEnd()}
onError={err => this.onError(err)}
/>

rate is not work on Android

@vitto-moz
Copy link

Is this feature planned to implement? Thanks!

@vitto-moz
Copy link

@djw27 Can I use exoplayer through react-native-video api?

@vitto-moz
Copy link

here is information about unimplemented "rate" prop - is this info actual?
https://github.com/react-native-community/react-native-video/tree/master/android-exoplayer

@djw27
Copy link

djw27 commented Feb 20, 2018

@vitto-moz you can indeed. Check the following for info:

#426 (comment)
https://www.bountysource.com/issues/40364073-exoplayer

@vitto-moz
Copy link

Ok, it seems it's not a very difficult task to implement exoplayer.
One more question, can I use them in parallel? (I am developing an app for mindmapping - making maps from video and other resources on fly, so I want to implement different features like zooming video. I can easily make it with react-native-video (zooming), but I suppose it will be difficult to make it with exoplayer, but I also need speed changing feature that would be provided by exoplayer, so I can use it for different videos )

@djw27
Copy link

djw27 commented Feb 22, 2018

I don't think it's possible in the same project since both Java packages expose the same class name RCTVideo which is used as a key in Video.js to pull in the native module:

https://github.com/react-native-community/react-native-video/search?l=Java&q=RCTVideo&type=&utf8=%E2%9C%93

@MERTKIRKALI
Copy link

@vitto-moz rate is still not workin on Android, right ?

@cobarx
Copy link
Contributor

cobarx commented May 29, 2018

Setting the rate is now supported now that #798 is merged. However, the Android media player APIs only support setting the rate on Android 6.0 and up. I'd suggest using the ExoPlayer version instead since it doesn't have this limitation.

@cobarx cobarx closed this as completed May 29, 2018
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

5 participants