VRConfiguration

@available(*, deprecated, message: "This class will be removed with the next major release.")
@objc(THEOplayerVRConfiguration)
public class VRConfiguration : NSObject, Codable

A VRConfiguration object contains the settings for 360 VR video playback.

  • This attribute indicates the stereo mode of the VR video. If set to nil, no stereo mode will be enabled.

    Declaration

    Swift

    public var stereoMode: StereoMode?
  • This attribute indicates whether 360 VR is enabled.

    Declaration

    Swift

    @objc
    public var vr360: Bool
  • This attribute indicates whether native VR is enabled.

    Declaration

    Swift

    @objc
    public var nativeVR: Bool
  • Constructs a VRConfiguration.

    Declaration

    Swift

    public init(vr360: Bool = true, stereoMode: StereoMode? = nil, nativeVR: Bool? = nil)

    Parameters

    vr360

    Whether 360 VR should be enabled, defaults to true.

    stereoMode

    The stereo mode of the VR video. If nil, no stereo mode will be enabled, defaults to nil. Has no effect when using nativeVR.

    nativeVR

    Whether native VR should be used, defaults to false if not specified.