'ExoPlayer issue exiting split screen / multi window while playing DRM
I have an application that plays DRM-Dash content using ExoPlayer, when the app goes into split screen the playback continues as expected, but exiting split screen makes the FrameView containing ExoPlayer float over the application.
This issue does not happen when a DRM free stream is played so seems related to the DRM keys
I'm taking advantage of onMultiWindowModeChanged to try to make ExoPlayer stick to it's original surface but I ran out of options.
Tried detaching the view and re-attaching but the issue persists
public void requestRebuild() {
detachViewFromParent(exoPlayerView);
LayoutParams layoutParams = getDefaultLayoutParams();
exoPlayerView.setLayoutParams(layoutParams);
attachViewToParent(exoPlayerView, 0 , layoutParams);
exoPlayerView.setPlayer(player);
startPlayback();
}
Also recreating the View but playback breaks
public void requestRebuild() {
removeView(exoPlayerView);
exoPlayerView = new ExoPlayerView(getContext());
LayoutParams layoutParams = getDefaultLayoutParams();
exoPlayerView.setLayoutParams(layoutParams);
addView(exoPlayerView, 0 , layoutParams);
recreateSimpleExoPlayer();
selectTrack();
setSource();
setControls();
}
Does anyone have experience re-attaching or re-creating a living ExoPlayer with DRM keys already loaded ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
