You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to seamlessly switch video from 1 SimpleExoPlayerView to another.
In the first I am playing an HLS video:
BandwidthMeter bandwidthMeter = new DefaultBandwidthMeter();
TrackSelection.Factory videoTrackSelectionFactory = new AdaptiveVideoTrackSelection.Factory(bandwidthMeter);
TrackSelector trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);
LoadControl loadControl = new DefaultLoadControl();
exoPlayer = ExoPlayerFactory.newSimpleInstance(textureVideoView.getContext(), trackSelector, loadControl);
Handler mainHandler = new Handler();
DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(App.getApp(), Util.getUserAgent(App.getApp(), "Agent"));
MediaSource hlsSource = new HlsMediaSource(sourceUri, dataSourceFactory, mainHandler, null);
return new LoopingMediaSource(hlsSource);
exoPlayer.prepare(new LoopingMediaSource(hlsSource));
exoPlayer.setPlayWhenReady(true);
I'm trying to keep the video in it's current state and swap the view that the player is using by calling simpleExoPlayerView.setPlayer(exoPlayer). The video switches to play in the second view but it shows up as black/grainy initially and after a few seconds clears up.
Using ExoPlayer version 2.1
Seeing this on Pixel XL 7.1.1
The text was updated successfully, but these errors were encountered:
I'm attempting to seamlessly switch video from 1 SimpleExoPlayerView to another.
In the first I am playing an HLS video:
I'm trying to keep the video in it's current state and swap the view that the player is using by calling
simpleExoPlayerView.setPlayer(exoPlayer)
. The video switches to play in the second view but it shows up as black/grainy initially and after a few seconds clears up.The text was updated successfully, but these errors were encountered: