Skip to content

Commit

Permalink
Re-initialize exoplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Nov 6, 2023
1 parent 27bc61c commit 2558182
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ public void UpdateSourceInfo()
episodeTitle.Text = Episode.Name;

SetNextAndPrev();

var handler = (MediaElementHandler)MediaElement.Handler;
playerView = handler.PlatformView.GetFirstChildOfType<StyledPlayerView>()!;
exoPlayer = (IExoPlayer)playerView.Player;
exoPlayer.AddListener(this);
}

#region Setup
Expand Down

0 comments on commit 2558182

Please sign in to comment.