VNode
public final class VNode : SCNNode
An object that represents spherical video.
-
Av player tha manage media content.
Declaration
Swift
private(set) public var player: AVPlayer! -
Initialize a VNode object with credentials.
Declaration
Swift
public convenience init(name: String, extension: String, subdirectory: String? = nil, size: CGSize = CGSize(width: 1024, height: 512), configuration: VConfiguration) throwsParameters
nameThe name of video file.
extensionThe extension of video file.
subdirectoryThe subdirectory of video file.
sizeThe size of video file (in pixel).
-
Initialize a VNode object with url.
Declaration
Swift
public init(url: URL, size: CGSize = CGSize(width: 1024, height: 512), configuration: VConfiguration) throwsParameters
urlThe url of video file.
sizeThe size of video file (in pixel).
-
Play video mapped.
Declaration
Swift
public func play(repeat: Bool)Parameters
repeatDo repeat the video.
-
Stop video.
Declaration
Swift
public func stop()
VNode Class Reference