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

Displaying controls on Android (play, pause, progress bar) #1404

Closed
supritshah1289 opened this issue Dec 30, 2018 · 4 comments
Closed

Displaying controls on Android (play, pause, progress bar) #1404

supritshah1289 opened this issue Dec 30, 2018 · 4 comments

Comments

@supritshah1289
Copy link

Current behavior

Controls are hidden when video starts on Android

Expected behavior

When video starts on Android platform, I want to show controls like play, pause and progress bar of the video.

Platform

Which player are you experiencing the problem on:

  • Android ExoPlayer

Video sample

screen shot 2018-12-30 at 11 22 27 am

plaform: Android
react - 16.56.6
rn - 0.57.8
react-native-vide - 3.2.1 ( latest version does not work for my url type)

Below is the video component for rendering url

<Video
source={{uri: this.props.navigation.state.params.watchUrl}}
ref={(ref) => {
this.player = ref
}} // Store reference
onBuffer={this.onBuffer} // Callback when remote video is buffering
onError={this.videoError} // Callback when video cannot be loaded
style={styles.backgroundVideo}

fullscreen={true}
controls={true}
/>

Thank you and Appreciate for your time.

@cobarx
Copy link
Contributor

cobarx commented Dec 31, 2018

At this time, we don't provide controls on Android because the system doesn't provide them. You should use a React Native package that provides controls or build your own. I've updated the README with this info.

At some point in the future, we may offer controls.

@cobarx cobarx closed this as completed Dec 31, 2018
@sunilzalavadiya
Copy link

@cobarx glad to know that this will available soon..

@aylacullen
Copy link

@cobarx - one of the developers I contracted with to develop an app for us (it's designed for the deaf in mind) cited this issue in where controls weren't available. The issue at hand is we want the video to be able to provide subtitles while also providing controls. Since your library does not support controls, would you be able to recommend an alternate React Native library that supports both? I know those aren't within your scope, but I thought I'd give it a shot in asking.

@xstable
Copy link

xstable commented Jan 25, 2019

@cobarx can you give a hint, how to build own controls?
What's with this PR: #1414
Could you check and merge it... that should solve the Request?

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