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

No controls on Android exoplayer #1277

Closed
ssilverr opened this issue Oct 10, 2018 · 2 comments
Closed

No controls on Android exoplayer #1277

ssilverr opened this issue Oct 10, 2018 · 2 comments

Comments

@ssilverr
Copy link

Current behavior

No controls are present in android exoplayer.

        <Video
          source={{
            uri: 'https://www.w3schools.com/html/mov_bbb.mp4'
          }}
          style={styles.backgroundVideo}
          paused
          controls
          resizeMode="contain"
          progressUpdateInterval={2500}
        //   useTexturxeView
        />

android logs:
W/unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.brentvatne.exoplayer.ReactExoplayerViewManager
every time the app is opened

the video plays if i take out the paused option.

screen shot 2018-10-10 at 18 13 42

Reproduction steps

Running on a Mac

Tried multiple versions of rn-video, no change.

"react-native-video": "^3.2.1",
"react-native": "0.57.1",

tested on (in debug):
Pixel 2 Xl, api 28, emulator
Nexus 5X, api 28, emulator
Huawei honor 7, real device

The Media player works normally (no fullscreen though), if I take out the -exoplayer from
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer') in settings.gradle

Expected behavior

Normal controls show, play, pause, fullscreen

Platform

Which player are you experiencing the problem on:

  • Android ExoPlayer

Video sample

https://www.w3schools.com/html/mov_bbb.mp4

@cobarx
Copy link
Contributor

cobarx commented Oct 14, 2018

See #1278, we don't have a set of controls for ExoPlayer built at this time, so we can't show them. You will need to build / use someone else's controls.

@cobarx cobarx closed this as completed Oct 14, 2018
@IbrahimSulai
Copy link
Contributor

Opened a PR (#1414) for showing the controls in Android Exoplayer.

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

3 participants