提交 3030446a 编写于 作者: B bbcallen

ios: correct loadState

上级 37127362
......@@ -236,6 +236,12 @@
[[NSNotificationCenter defaultCenter] postNotificationName:IJKMediaPlaybackIsPreparedToPlayDidChangeNotification object:self];
_loadState |= MPMovieLoadStatePlayable;
[[NSNotificationCenter defaultCenter]
postNotificationName:IJKMoviePlayerLoadStateDidChangeNotification
object:self];
break;
case FFP_MSG_COMPLETED: {
......@@ -266,7 +272,7 @@
case FFP_MSG_BUFFERING_START: {
NSLog(@"FFP_MSG_BUFFERING_START:");
_loadState = MPMovieLoadStateStalled;
_loadState = MPMovieLoadStatePlayable | MPMovieLoadStateStalled;
[[NSNotificationCenter defaultCenter]
postNotificationName:IJKMoviePlayerLoadStateDidChangeNotification
......@@ -276,7 +282,7 @@
case FFP_MSG_BUFFERING_END: {
NSLog(@"FFP_MSG_BUFFERING_END:");
_loadState = MPMovieLoadStatePlaythroughOK;
_loadState = MPMovieLoadStatePlayable | MPMovieLoadStatePlaythroughOK;
[[NSNotificationCenter defaultCenter]
postNotificationName:IJKMoviePlayerLoadStateDidChangeNotification
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册