-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPMoviePlaybackState always Paused #8
Comments
Which player did you use, IJKMPMoviePlayerController or IJKFFMoviePlayerController? |
I am using IJKFFMoviePlayerController. I did not set shouldAutoPlayer=YES. Now I did but same result. Here is my code: inViewDidLoad: self.player = [[IJKFFMoviePlayerController alloc] initWithContentURL:theMovieURL withOptions:nil];
notification method: On 03 Apr 2014, at 07:58, bbcallen notifications@github.com wrote:
|
Fixed: 17c7ade Now, "prepared" state is treated as "playing" |
Thank you for that. And How do I know player is buffering at any time? On 03 Apr 2014, at 10:27, bbcallen notifications@github.com wrote:
|
see: d948865
|
Is this update for IJKMPMoviePlayerController? I need for IJKFFMoviePlayerController. My player does not get triggered while buffering. :( On 03 Apr 2014, at 11:19, bbcallen notifications@github.com wrote:
|
Both IJKMPMoviePlayerController and IJKFFMoviePlayerController are OK in latest IJKMediaDemo on master. Add some sleep() around av_read_frame() to demonstrate slow network. |
While player is playing url, I change stream from my server but in the app I can’t get buffer notification for new stream, my new stream plays automatically. I can’t know when it started to play. avmsg->what cvalues always “502 or 503 or 504” when I change the stream. Like it never changed. On 03 Apr 2014, at 15:03, bbcallen notifications@github.com wrote:
|
If you mean FFP_MSG_BUFFERING_START(END) messages, stalled buffering only happens when there is not enough data to decode at all. “502, 503, 504” is designed to indicate pre-fetching progress displayed on UI, such as second progress in slider, no only for stalled buffering, but also for normal pre-fetching. You should make the streaming slowly enough to reproduce FFP_MSG_BUFFERING_START(END) messages |
Can this issue be closed? |
Yes, thank you. |
Hello. I am trying to get mediaplayer situations when it is paused or stoped. But I can't receive correct notification.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(stateDidChange:) name:IJKMoviePlayerPlaybackStateDidChangeNotification object:self.player];
But the state is always "MPMoviePlaybackStatePaused".
Please help.
The text was updated successfully, but these errors were encountered: