Skip to content
Advertisement

ExoPlayer switching media source without black screen

I’m using exoplayer in my project, when switching mediasource i just use

player.stop();
player.prepare(mediaSource);

This causes approx. 0.5 seconds black screen until it switches video.

Is there a way to tell exoplayer to retain last frame from previous video (instead of 0.5 sec black screen) until new video is started?

Advertisement

Answer

simpleExoPlayerView.setShutterBackgroundColor(Color.TRANSPARENT);
4 People found this is helpful
Advertisement