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) throws

    Parameters

    name

    The name of video file.

    extension

    The extension of video file.

    subdirectory

    The subdirectory of video file.

    size

    The 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) throws

    Parameters

    url

    The url of video file.

    size

    The size of video file (in pixel).

  • Play video mapped.

    Declaration

    Swift

    public func play(repeat: Bool)

    Parameters

    repeat

    Do repeat the video.

  • Stop video.

    Declaration

    Swift

    public func stop()