VrConfig
data class VrConfig(var vrContentType: VrContentType? = VrContentType.None, var isStereo: Boolean = false, var startPosition: Double = 0.0, var viewingDirectionChangeEventInterval: Double = 0.25, var viewingDirectionChangeThreshold: Double = 5.0, var viewingWindow: VrViewingWindowConfig = VrViewingWindowConfig()) : Parcelable
Configures VR functionality of a Source.
Constructors
| VrConfig | constructor(vrContentType: VrContentType? = VrContentType.None, isStereo: Boolean = false, startPosition: Double = 0.0, viewingDirectionChangeEventInterval: Double = 0.25, viewingDirectionChangeThreshold: Double = 5.0, viewingWindow: VrViewingWindowConfig = VrViewingWindowConfig())constructor(parcel: Parcel) |
Properties
| Name | Summary |
|---|---|
| isStereo | @SerialName(value = "stereo") var isStereo: Boolean Whether the video starts in stereo mode. Default is false. |
| startPosition | var startPosition: Double The starting viewpoint, stated in degrees. |
| viewingDirectionChangeEventInterval | var viewingDirectionChangeEventInterval: Double The minimal interval between consecutive PlayerEvent.VrViewingDirectionChange events in seconds. Default value is 0.25. |
| viewingDirectionChangeThreshold | var viewingDirectionChangeThreshold: Double The threshold in degrees that the viewport can change before the PlayerEvent.VrViewingDirectionChange event is emitted. Default value is 5. |
| viewingWindow | var viewingWindow: VrViewingWindowConfig Configures the VR viewing window. Per default, the user has no limitations. Default value is a default VrViewingWindowConfig. |
| vrContentType | @SerialName(value = "contentType") var vrContentType: VrContentType? The VrContentType of the VR/360 content. |