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
33
votes
1 answer
ARKit SKVideoNode Playing on Render
Main Problem:
I am adding this section AFTER to clarify the problem. -- I can PAUSE my video (I do not want it playing on a loop). When my node comes into sight, my node plays my video, even if it is on pause. If my video has finished playing, and…

impression7vx
- 1,728
- 1
- 20
- 50
10
votes
2 answers
ARKit / SpriteKit - set pixelBufferAttributes to SKVideoNode or make transparent pixels in video (chroma-key effect) another way
My goal is to present 2D animated characters in the real environment using ARKit. The animated characters are part of a video at presented in the following snapshot from the video:
Displaying the video itself was achieved with no problem at all…

2shy
- 318
- 3
- 15
10
votes
1 answer
SKVideoNode only on a small part of SCNSphere
I'm using SKVideoNode as a material for my sphere for 360 video, but it only renders the video on the xy positive part of the sphere, I'm streaming the video from a URL it's a .m3u8 for reference see - SKVideoNode as texture for SCNSphere
Multiple…

Gerwin
- 1,572
- 5
- 23
- 51
7
votes
0 answers
Why does SKVideoNode automatically starts playing video on iOS9?
When initialising a SKVideoNode with a video URL in iOS9 the behaviour changed to automatically starting the video as soon as the node is added, i.s.o. after the play method is called in previous versions of iOS.
doing the following inside the…

Pieter
- 17,435
- 8
- 50
- 89
6
votes
2 answers
play video forever in sprite kit
i am having an issue with playing back a video in my intro scene. i have added my video to the scene and it plays fine. i just want it to repeat again and again. is there any way to set this video to playback automatically after it ends?
this is how…

Adrian P
- 6,479
- 4
- 38
- 55
5
votes
0 answers
SKVideoNode with color blend using SKEffectNode crashes
I need to blend a color to the video as it done with textures in SKSpriteNode. The video has transparency (HEVC), you can download it here. Doc says that a video can be color-blended and I'm writing the correct code, but it crashes.
Quote:
A video…

kelin
- 11,323
- 6
- 67
- 104
5
votes
3 answers
Determine size/aspect ratio of video for SKVideoNode in SceneKit
How can I get the video size of a video from AVPlayer to set the geometry size of my node?
For example, I have an SCNPlane with a width and height
let planeGeo = SCNPlane(width: 5, height: 5)
So now I instantiate my video player
let videoURL =…

Nico S.
- 3,056
- 1
- 30
- 64
5
votes
3 answers
Playing back video in an SKVideoNode causes a black flash before playback begins
I'm using Sprite Kit and an SKVideoNode to play back a short video. When the video node is added to the scene, be that before of after the initial set up, the player flashes black for a brief second.
I have tried using an AVPlayer for the video…

Mark Reid
- 2,611
- 3
- 23
- 45
3
votes
1 answer
Issue with SKVideoNode in SpriteKit, Simulator just shows Grey Screen
Trying to run a 'Cut Scense Video' before entering into my game build. The game works great. I have created a separate scene, which I named "StartScene" to play my cut scene. The build succeeds, but when it gets to the cut scene part on the…

Brantley
- 33
- 7
3
votes
1 answer
Issues with vertical video orientation in SKVideoNode using Swift
The following code shows my video file in correct zPosition with the other elements I'm working with, creating a background video.
The problem I'm having is that the vertical video (1080x1920 pixels) gets rotated 90 degrees counterclockwise, and is…

Mr_P
- 523
- 2
- 16
3
votes
0 answers
SKVideoNode plays transparent video sometimes, but not always
We have an SKVideoNode that we're adding to an SKScene in a SpriteKit game, and the mp4 video plays just fine maybe 90% of the time, 10% of the time it just renders transparent video with the audio playing just fine.
What I mean by transparent, is…

Matt Fiocca
- 1,533
- 13
- 21
2
votes
0 answers
SKVideoNode not respecting aspect ratio
I'm mapping an SKScene with SKVideoNode onto one of the sides of a SCNBox. I'm struggling to get the aspect ratio of the video correct. Here's the code:
NSURL * url = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/%@", [[NSBundle…

Johnny Rockex
- 4,136
- 3
- 35
- 55
2
votes
0 answers
SKVideoNode Not Working on Iphone 5 for 360 degree video
I am working on 360 degree video player. I have done this throw SKVideoNode. it works fine on all other devices but it's not working on iphone 5. and it's showing black screen while playing video but we can hear audio. So please suggests me how i…

Rakesh
- 21
- 2
2
votes
1 answer
SKVideoNode frame rate
Basically SKVideoNode will not respect AVPlayer's rate.
By default, SKVideoNode has no way of controlling playback rate. However, the SKVideoNode can be initialized with an AVPlayer (which itself contains an AVPlayerItem). This AVPlayer has a…

utiq
- 1,342
- 2
- 17
- 33
2
votes
2 answers
Failed to create IOSurface image (texture) with GVRSDK
I create a SKScene with SKVideoNode, then apply to a sphere geometry.
Here is the key code:
// Create a SKScene to play video
NSString* filePath = [[NSBundle mainBundle] pathForResource:@"2222" ofType:@"mp4"];
NSURL* sourceMovieURL = [NSURL…

guiyuan
- 21
- 1
- 3