I want to display a video in a SpriteKit scene.
Apple developer says:
let sample = SKVideoNode(fileNamed: "sample.mov") sample.position = CGPoint(x: frame.midX, y: frame.midY) addChild(sample) sample.play()
But when I insert the code I get a hole bunch of errors.
Does somebody know what I have to do?