One Logo Pool Ball
SpriteKit · IOS API REFERENCE

SKVideoNode

class · SDK 27.1

class SKVideoNode

Members (12)

init

init

TypeScript
static initAvPlayer(player: _AVFoundation_AVPlayer): Promise<SKVideoNode>
Swift declaration
init(avPlayer player: AVPlayer)
init

init

TypeScript
static initCoder(aDecoder: _Foundation_NSCoder): Promise<(SKVideoNode) | null>
Swift declaration
init?(coder aDecoder: NSCoder)
init · iOS 8.0+

init

TypeScript
static initFileNamed(videoFile: string): Promise<SKVideoNode>
Swift declaration
init(fileNamed videoFile: String)
init · iOS 8.0+

init

TypeScript
static initUrl(url: string): Promise<SKVideoNode>
Swift declaration
init(url: URL)
init · iOS 7.0+ · Deprecated in iOS 8.0

init

TypeScript
static initVideoFileNamed(videoFile: string): Promise<SKVideoNode>
Swift declaration
init(videoFileNamed videoFile: String)
init · iOS 7.0+ · Deprecated in iOS 8.0

init

TypeScript
static initVideoURL(url: string): Promise<SKVideoNode>
Swift declaration
init(videoURL url: URL)
method

pause

TypeScript
pause(): Promise<void>
Swift declaration
func pause()
method

play

TypeScript
play(): Promise<void>
Swift declaration
func play()
get

anchorPoint

TypeScript
get anchorPoint(): Promise<{ x: number; y: number }>
Swift declaration
var anchorPoint: CGPoint { get set }
set

anchorPoint

TypeScript
setAnchorPoint(value: { x: number; y: number }): Promise<void>
Swift declaration
var anchorPoint: CGPoint { get set }
get

size

TypeScript
get size(): Promise<{ width: number; height: number }>
Swift declaration
var size: CGSize { get set }
set

size

TypeScript
setSize(value: { width: number; height: number }): Promise<void>
Swift declaration
var size: CGSize { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SKVideoNode.init()

inherited init: cannot prove legal (class declares 9 custom initializers)

All SpriteKit types →