This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Creates A Video Player As An SCNGeometries Diffuse Contents | |
static func setupVideoOnNode(_ node: SCNNode, fromURL url: URL) { | |
//1. Create An SKVideoNode | |
var videoPlayerNode: SKVideoNode! | |
//2. Create An AVPlayer With Our Video URL | |
let videoPlayer = AVPlayer(url: url) | |
//3. Initialize The Video Node With Our Video Player |