VR
public protocol VR : EventDispatcherProtocolThe player’s VR attributes can be used to change the stereo mode, the viewing direction and the vertical field of view.
Remark
The VR attributes are properties of the vr object, which is accessible through the player object.- 
                  
                  A VR direction object with properties yaw, pitch and roll must be set to change the direction; the values of these properties should be in degrees. Remark When using native VR, if you set this property then the configured direction will be the new origin instead of 0,0,0.DeclarationSwift var direction: VRDirection { get set }
- 
                  
                  Whether stereo VR mode is enabled. Remark Setting it to true renders the video in VR; setting it to false removes the VR rendering.DeclarationSwift var stereo: Bool { get set }
- 
                  
                  Sets or returns the vertical field of view in VR. This value can be a degree in the range of [0, 180]. Increasing this value creates a more zoomed out effect. DeclarationSwift var verticalFOV: Int { get set }
- 
                  
                  Adds the event listener of the given EventType. Remark When attaching a listener on the wrong object the application will crash. DeclarationSwift func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocolParameterstypeEventTypeof the added event listener. SeeVREventTypesfor possible values.listenerClosure called when event is dispatched. Return ValueThe newly added EventListener.
- 
                  
                  Removes the event listener of the given EventType.DeclarationSwift func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameterstypeEventTypeof the event listener to be removed. SeeVREventTypesfor possible values.listenerEventListenerwhich was added byaddEventListener(...).
 VR Protocol Reference
      VR Protocol Reference