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

Player does not resume playback #641

Open
1 task done
Mradx opened this issue Aug 5, 2018 · 5 comments
Open
1 task done

Player does not resume playback #641

Mradx opened this issue Aug 5, 2018 · 5 comments

Comments

@Mradx
Copy link

Mradx commented Aug 5, 2018

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • ExoMedia version: 4.2.2
  • Device OS version: 7.1.1
  • Devide Manufacturer: LG
  • Device Name: Nexus 5
Reproduction Steps
  1. Open any video from demo app.
  2. Open Recents Screen and then return to the player.
  3. Click "play" button.

Player does not resume playback. I see only a black screen. Log:

08-05 16:45:28.838 767-767/com.devbrackets.android.exomediademo E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf glUtilsParamSize: unknow param 0x00008824
08-05 16:45:28.884 767-767/com.devbrackets.android.exomediademo D/EventLogger: state [25.05, 9.80, window=0, true, IDLE]

Additionally
I reproduced this bug on my physical device Xiaomi Mi 5 and got the following log:

08-05 19:55:47.579 16936-16936/com.devbrackets.android.exomediademo E/BpSurfaceComposerClient: Failed to transact (-1)
08-05 19:55:47.580 16936-16936/com.devbrackets.android.exomediademo E/BpSurfaceComposerClient: Failed to transact (-1)
08-05 19:59:45.956 16936-16936/com.devbrackets.android.exomediademo D/EventLogger: state [12.49, 24.45, window=0, true, IDLE]
@brianwernick
Copy link
Owner

I'll look in to this soon, I'm not sure at the moment if it's a demo app bug or a library bug.

@dkshin
Copy link

dkshin commented Aug 26, 2019

same problem...

Device : Galaxy s10(Pie), Nexus 5x(Oreo)
ExoMedia Version : 4.3.0
ExoPlayer Version : 2.9.6

@hamzaahmedkhan
Copy link
Contributor

I am facing the same issue.

ExoMedia Version : 4.3.0
Device: Samsung S8+, Mi A3, Redmi Note 8, Sony xperia z5 and others

@hamzaahmedkhan
Copy link
Contributor

Issue resolved for me, just use onDestroy method to removeVideoApi and invokeStop

@Override
protected void onStop() {
    super.onStop();
    Log.d(VideoPlayerActivity.class.getCanonicalName(), "onStop: ");
    playlistManager.unRegisterPlaylistListener(this);
    
    if (videoApi.isPlaying()) {
        playlistManager.invokePausePlay();
    }
}



@Override
protected void onDestroy() {
    playlistManager.removeVideoApi(videoApi);
    playlistManager.invokeStop();

    super.onDestroy();
    Log.d(VideoPlayerActivity.class.getCanonicalName(), "onDestroy: ");
}

@brianwernick brianwernick moved this to Triage in ExoMedia Sep 22, 2022
@AngelinaFedorova
Copy link

same problem
Xiaomi mi 9t, samsung galaxy s23 ultra
ExoMedia version 5.1.0
Select video (video player screen is opened and video is started)
Hide app
Expand app
The player displays a black screen and the video does not play. If you replace onStop function with invokePausePlay, the video starts playing, but the screen is still black (there is no video track)

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

No branches or pull requests

5 participants