提交 651309e8 编写于 作者: A agneszitte

chore: Fix formatting for the OnPrepared method in MediaPlayer.Android.cs

上级 1bdde630
......@@ -280,20 +280,20 @@ namespace Windows.Media.Playback
{
UpdateVideoStretch(_currentStretch);
if (_isPlayRequested)
{
_player.Start();
PlaybackSession.PlaybackState = MediaPlaybackState.Playing;
}
else
{
// To display first image of media when setting a new source. Otherwise, last image of previous source remains visible
_player.Start();
_player.Pause();
_player.SeekTo(0);
PlaybackSession.PlaybackState = MediaPlaybackState.Paused;
if (_isPlayRequested)
{
_player.Start();
PlaybackSession.PlaybackState = MediaPlaybackState.Playing;
}
else
{
// To display first image of media when setting a new source. Otherwise, last image of previous source remains visible
_player.Start();
_player.Pause();
_player.SeekTo(0);
PlaybackSession.PlaybackState = MediaPlaybackState.Paused;
}
}
}
_isPlayerPrepared = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册