ExoMedia
ExoMedia copied to clipboard
Player does not resume playback
- [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
- Open any video from demo app.
- Open Recents Screen and then return to the player.
- 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]
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.
same problem...
Device : Galaxy s10(Pie), Nexus 5x(Oreo) ExoMedia Version : 4.3.0 ExoPlayer Version : 2.9.6
I am facing the same issue.
ExoMedia Version : 4.3.0 Device: Samsung S8+, Mi A3, Redmi Note 8, Sony xperia z5 and others
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: ");
}