An SKVideoNode is a node that plays live video. A video node can be instantiated using a video file in the bundle. Or, if you need more precise control over video playback, you can instantiate the video node using an AVPlayer object. Available in iOS 7.0 and later.
Questions tagged [skvideonode]
47 questions
2
votes
0 answers
SKVideoNode doesn't play video
I've been researching about this issue for some time now, tried applying solutions on similar questions on stackoverflow but no luck so far.
My code:
override func didMoveToView(view: SKView) {
if let path =…

Tomer Ciucran
- 199
- 1
- 10
2
votes
0 answers
SKVideoNode plays sound but not displaying video
Hi all i'm trying to add video on a scene
I can hear it but not see it, any ideas what i'm doing wrong?
my setup is:
import AVFoundation/AVFoundation.h
added AVFoundation library
-(void)didMoveToView:(SKView *)view {
fileURL = [NSURL…

StackBuddy
- 577
- 5
- 17
2
votes
0 answers
SKVideoNode videoNodeWithFileNamed: crashes in iOS 8.4, fine in iOS 9
In iOS 8.4, our game is crashing when trying to initialize an SKVideoNode via filename, works just fine in iOS 9. Apple documentation states that the following method is supported in 8.0 and later (here):
SKVideoNode *introVideoNode = [SKVideoNode…

Matt Fiocca
- 1,533
- 13
- 21
2
votes
0 answers
SKVideoNode with AVPlayer is playing but not visible on iOS 9.0
I have a problem with Xcode 7.0 (7A220) and iOS 9.0. I add a video (.mp4 or mov, both not working) with an AVPlayer and SKVideoNode. On the simulator with iOS 8.4 it's working fine, but on iOS 9.0 (also simulator) the video is not showing. I can…

TomWebDev
- 231
- 2
- 12
2
votes
0 answers
Playing video in Sprite Kit using SKVideoNode not working in Xcode 7
I've just ported the game I'm working on in Sprite Kit to the released version of Xcode 7 & got everything updated except I can't play my video's using SKVideoNodes. The code runs, but just plays audio & not video in Xcode 7. Video plays fine with…

ronsinda
- 139
- 1
- 5
2
votes
1 answer
How to detect SKVideoNode playback completion
I am using an SKVideoNode to display animated splash scene using this code:
SKVideoNode *video = [SKVideoNode videoNodeWithVideoFileNamed:@"splash_video.mp4"];
video.position = CGPointMake(CGRectGetMidX(self.frame),
…

Yuvals
- 3,094
- 5
- 32
- 60
2
votes
1 answer
AVPlayer in SKVideoNode can't play
I init a SKVideoNode with an AVPlayer instance, When I call AVPlayer's play method, the video don't play. But It can play when I call SKVideoNode instance's play method.
The reason I have to use AVPlayer not SKVideoNode is that I have to monitor…

ronan
- 1,611
- 13
- 20
2
votes
1 answer
AVPlayer play SKVideoNode video ,I just can not control the playback
I am using the SpriteKit to play video,this is my code to create the SKVideoNode from AVPlayer:
func CreateVideoViewWithAVPlayer(player:AVPlayer)
{
video = SKVideoNode(AVPlayer: player)
let frameLayer=AVPlayerLayer(player: player)
…

Yufu
- 51
- 6
2
votes
1 answer
Preroll an SKVideoNode w/AVPlayer before scene transition?
I am using an AVPlayer with an SKVideoNode attached to a scene. That is the only node for that SKScene. I am playing out that video intermingled with a set of other scenes loaded with a variety of SKSpriteNode nodes.
I want to pre-roll the…

zzyzy
- 973
- 6
- 21
1
vote
2 answers
iOS13 Beta-8 SKVideoNode+AVPlayer show black screen
my app is a AR app to play h.264 video.
We created SKVideoNode by AVPlayer and set the SKVideoNode to SKScene, and then create SCNNode to involve this SKScene.
- Sample Code
AVPlayer *avPlayer = [self getMoviePlayer:path];
SKVideoNode *videoNode =…

user11989557
- 11
- 1
1
vote
1 answer
SKVideoNode stoping an SKAudioNode from playing
I'm trying to add background video and background music to a game I'm creating. To do this I'm creating a SKVideoNode and a SKAudioNode. When I run the game the video plays fine but most of the time the music doesn't play. It works just fine though…

Standard
- 45
- 6
1
vote
2 answers
SKVideoNode not showing video
I've been trying to get this code that's pretty much copied/pasted from Apple's documentation to play a local video but seem to be missing something. I've imported AVFoundation and the video into the project. I'm not throwing any errors but no…

Lost_apple
- 67
- 5
1
vote
1 answer
Why 360 degree video is not working with SKVideoNode on iPhone 5 but it is working fine on iPhone 4s, 5s, 6 and 6 plus?
I am working with 360 video player with SKVideoNode.
when i am playing video it is working fine on all devices except iphone 5. in iphone 5 video have black screen but audio is working. it is working on iphone 5 simulator also. Is there any device…

Rakesh Mandloi
- 361
- 2
- 11
1
vote
0 answers
iOS 10 Beta Video Playback Broken
Using AVPlayer and SKVideoNode, code / app that was working fine with iOS 9.x is now not playing video on 10 Beta x. The file seems to be playing, but getting the error message
Failed to create IOSurface image (texture)
This is for all for formats…

ort11
- 3,359
- 4
- 36
- 69
1
vote
0 answers
SKVideoNode strange log error
I'm creating a SKVideoNode in the following way. It creates the video without any issues, but I get this strange log message and I'm wondering if anyone knows what it's all about. I tried googling it, but I couldn't find anything.
Here's the…

02fentym
- 1,762
- 2
- 16
- 29