VrConfig

data class VrConfig(vrContentType: VrContentType?, isStereo: Boolean, startPosition: Double, viewingDirectionChangeEventInterval: Double, viewingDirectionChangeThreshold: Double, viewingWindow: VrViewingWindowConfig) : Parcelable

Configures VR functionality of a Source.

Constructors

VrConfig
Link copied to clipboard
fun VrConfig(vrContentType: VrContentType? = VrContentType.None, isStereo: Boolean = false, startPosition: Double = 0.0, viewingDirectionChangeEventInterval: Double = 0.25, viewingDirectionChangeThreshold: Double = 5.0, viewingWindow: VrViewingWindowConfig = VrViewingWindowConfig())

Properties

isStereo
Link copied to clipboard
@SerializedName(value = stereo)
var isStereo: Boolean = false
Whether the video starts in stereo mode.
startPosition
Link copied to clipboard
@SerializedName(value = startPosition)
var startPosition: Double = 0.0
The starting viewpoint, stated in degrees.
viewingDirectionChangeEventInterval
Link copied to clipboard
@SerializedName(value = viewingDirectionChangeEventInterval)
var viewingDirectionChangeEventInterval: Double = 0.25
The minimal interval between consecutive PlayerEvent.VrViewingDirectionChange events in seconds.
viewingDirectionChangeThreshold
Link copied to clipboard
@SerializedName(value = viewingDirectionChangeThreshold)
var viewingDirectionChangeThreshold: Double = 5.0
The threshold in degrees that the viewport can change before the PlayerEvent.VrViewingDirectionChange event is emitted.
viewingWindow
Link copied to clipboard
@SerializedName(value = viewingWindow)
var viewingWindow: VrViewingWindowConfig
Configures the VR viewing window.
vrContentType
Link copied to clipboard
@SerializedName(value = contentType)
var vrContentType: VrContentType?
The VrContentType of the VR/360 content.

Inherited functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)