-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Comments
Is this feature planned to implement? Thanks! |
Doesn't work because it hasn't been added yet: https://github.com/react-native-community/react-native-video/blob/master/android/src/main/java/com/brentvatne/react/ReactVideoView.java#L380 Unless you use explayer, then it should work: https://github.com/react-native-community/react-native-video/blob/master/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java#L623 |
@djw27 Can I use exoplayer through react-native-video api? |
here is information about unimplemented "rate" prop - is this info actual? |
@vitto-moz you can indeed. Check the following for info: #426 (comment) |
Ok, it seems it's not a very difficult task to implement exoplayer. |
I don't think it's possible in the same project since both Java packages expose the same class name |
@vitto-moz rate is still not workin on Android, right ? |
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. |
<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
The text was updated successfully, but these errors were encountered: