avplayer
ARKit SKVideoNode Playing on Render
Ok. So here is a fix. see renderer(_:updateAtTime:). var player: AVPlayer! var play = true @objc func tap(_ recognizer: UITapGestureRecognizer){ if play{ play = false player.pause() }else{ play = true player.play() } } func setVideo() -> SKScene{ let size = CGSize(width: 500, height: 500) let skScene = SKScene(size: size) let videoURL = Bundle.main.url(forResource: “video.mp4”, withExtension: … Read more
How to stop a video in AVPlayer?
AVPlayer does not have a method named stop. You can pause or set rate to 0.0.
How to mute video played in AVPlayer?
Since iOS7 you can set the AVPlayer isMuted property to true. In Objective C the property is called muted. Reference: https://developer.apple.com/documentation/avfoundation/avplayer/1387544-ismuted