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
Player isn't working unless in fullscreen mode + events questions #129
Comments
@ThiagoMiranda super thank you, very detailed. I will forward the error to our main engineer @isair , he will check it asap. |
Are you adding the view controller as a child view controller? |
Thanks for the reply. @sahin and @isair For the first question for some reason when I did a refactor on my code ( initializing all of the project again ) and it worked. We don't seem to have the answer why this happened yet but it's working so be it =p notificationCenter.addObserverForName(
MPMoviePlayerPlaybackStateDidChangeNotification,
object: player.moviePlayer,
queue: NSOperationQueue.mainQueue()) { notification in
switch player.state {
case .Playing:
eventType = "play"
case .Paused:
eventType = "pause"
case .Buffering:
eventType = "buffer"
default:
break
}
} Can I make two quick questions? player.moviePlayer.setFullscreen(true, animated: false) but it shows a black screen and pauses the video. 2- We wanna put a play and pause button right on the middle of the screen like this: |
Glad it's working! As for your questions
|
@sahin
Hi..
I'm trying to implement the mobileios and I've been running in some issues.
When I try to put the player in a "subview" it doesn't receive any user input ( I just can't pause/play or do any of the actions ).
Here's my code:
Another question: how can I listen to the player events? Like "onPlay", "onPause", "onProgress" and so on?
Thanks
The text was updated successfully, but these errors were encountered: