ExoMedia icon indicating copy to clipboard operation
ExoMedia copied to clipboard

Player does not resume playback

Open Mradx opened this issue 7 years ago • 5 comments

  • [x] 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]

Mradx avatar Aug 05 '18 17:08 Mradx

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.

brianwernick avatar Aug 06 '18 13:08 brianwernick

same problem...

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

dkshin avatar Aug 26 '19 02:08 dkshin

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 avatar Dec 24 '19 15:12 hamzaahmedkhan

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: ");
}

hamzaahmedkhan avatar Dec 24 '19 15:12 hamzaahmedkhan