We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
let myURL = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
url = URL(string:myURL) mmPlayerLayer.playView = videoView mmPlayerLayer.coverFitType = .fitToPlayerView mmPlayerLayer.videoGravity = .resizeAspectFill self.mmPlayerLayer.set(url: url) mmPlayerLayer.getStatusBlock { [weak self] (status) in switch status { case .failed(let err): print("Error") case .ready: print("Ready to Play") self!.stateVideo = "pause" self!.mmPlayerLayer.player?.pause() case .playing: //print("Playing") self!.stateVideo = "playing" case .pause: //print("Pause") self!.stateVideo = "pause" case .end: //print("End") self!.stateVideo = "end" self!.mmPlayerLayer.resume() default: break } } self.mmPlayerLayer.resume()
This doesn't stream the video. Please help!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
let myURL = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
This doesn't stream the video. Please help!
The text was updated successfully, but these errors were encountered: