提交 149c3925 编写于 作者: X xinzhengzhang

iOS/player: reset buffering progress before seeking

上级 630c15e9
......@@ -337,6 +337,7 @@ static IJKAVMoviePlayerController* instance;
_seekingTime = aCurrentPlaybackTime;
_isSeeking = YES;
_bufferingProgress = 0;
[self didPlaybackStateChange];
[self didLoadStateChange];
if (_isPrerolling) {
......
......@@ -519,6 +519,7 @@ inline static int getPlayerOption(IJKFFOptionCategory category)
postNotificationName:IJKMPMoviePlayerPlaybackStateDidChangeNotification
object:self];
_bufferingPosition = 0;
ijkmp_seek_to(_mediaPlayer, aCurrentPlaybackTime * 1000);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册