While I am testing this app Xcode Simulator, I am unable to see video in SKVideoNode but the sound is audible.
The same issue for both .mp4 and .mov files
func showVideo()
{
let strVideoFile = "Beach.mov"
let spriteVideo : SKVideoNode = SKVideoNode(fileNamed: strVideoFile)
spriteVideo.position = CGPoint(x: 0, y: 0)
spriteVideo.setScale(0.5)
spriteVideo.zPosition = 10
spriteVideo.alpha = 1.0
self.addChild(spriteVideo)
spriteVideo.play()
print("Playing \(strVideoFile)")
}
No error messages displayed. I know that the node is added because I can see the increase in the node count.