#include "AliVRPlayerViewProtocol.h"
◆ handleGestureWithTouches:
| - (void) handleGestureWithTouches: |
|
(NSSet *) | touches |
|
◆ handlePanGesture:
| - (void) handlePanGesture: |
|
(UIPanGestureRecognizer *) | paramSender |
|
通过手势控制vr播放器的角度
- Parameters
-
Set VRPlayer rotate radians with axis
- Parameters
-
◆ resetGestureAngle
| - (void) resetGestureAngle |
|
|
|
◆ rotateVRSceneWithX:andY:
| - (void) rotateVRSceneWithX: |
|
(CGFloat) | x |
| andY: |
|
(CGFloat) | y |
设置VR播放器旋转的角度
- Parameters
-
Set VRPlayer rotate radians with axis
- Parameters
-
| x | radians of x axis |
| y | radians of y axis |
◆ setDisplayMode:
| - (void) setDisplayMode: |
|
(AliVRPlayerViewDisplayMode) | displayMode |
|
设置VR播放器的展示方式
- Parameters
-
| displayMode | AliVRPlayerViewDisplayMode360 or AliVRPlayerViewDisplayModeGlass,默认值为 AliVRPlayerViewDisplayMode360 |
Set VRPlayer display mode (AliVRPlayerViewDisplayMode360 or AliVRPlayerViewDisplayModeGlass)
- Parameters
-
| displayMode | AliVRPlayerViewDisplayMode360 or AliVRPlayerViewDisplayModeGlass (Default value is AliVRPlayerViewDisplayMode360) |
◆ setFovDegrees:
| - (void) setFovDegrees: |
|
(CGFloat) | degrees |
|
◆ setInteractionOptions:enabled:
| - (void) setInteractionOptions: |
|
(AliVRPlayerInteractiveOptions) | option |
| enabled: |
|
(BOOL) | enable |
设置VR播放器的交互类型为开启或者关闭
- Parameters
-
| option | AliVRPlayerInteractiveOptionsPinch、AliVRPlayerInteractiveOptionsVerticalEnabled、AliVRPlayerInteractiveOptionsHorizontal、AliVRPlayerInteractiveOptionsDeviceMotion |
| enable | YES or NO (默认是AliVRPlayerInteractiveOptionsDeviceMotion开启状态,其他的为关闭状态) |
Set VRPlayer Interactive mode
- Parameters
-
| option | AliVRPlayerInteractiveOptionsPinch、AliVRPlayerInteractiveOptionsVerticalEnabled、AliVRPlayerInteractiveOptionsHorizontal、AliVRPlayerInteractiveOptionsDeviceMotion |
| enable | YES or NO (Default is AliVRPlayerInteractiveOptionsDeviceMotion YES,others is NO ) |
◆ setPlayerViewOrientation:
| - (void) setPlayerViewOrientation: |
|
(AliVRPlayerViewOrientation) | orientation |
|
设置VR播放器容器的朝向
- Parameters
-
| orientation | 参考 AliVRPlayerViewOrientation |
Set VRPlayer view orientation
- Parameters
-
| orientation | see AliVRPlayerViewOrientation |
◆ setVRDelegate:
◆ setVRDisplayContentsWithImage:
| - (void) setVRDisplayContentsWithImage: |
|
(UIImage *) | image |
|
设置播放器显示全景图
- Parameters
-
Set VRPlayer display with 360 image
- Parameters
-
| image | 360 image/Users/tony/Aliyun/AliPlayer_5.3.4/apsaraPlayer_iOS/source/AliVRPlayerView.h |
◆ setVRSceneRotate:
| - (void) setVRSceneRotate: |
|
(CGFloat) | rotate |
|
设置VR播放器的旋转角度
- Parameters
-
Set VRPlayer view rotate
- Parameters
-
◆ setVRSceneScale:
| - (void) setVRSceneScale: |
|
(CGFloat) | scale |
|
设置VR播放器的放大倍数
- Parameters
-
Set VRPlayer view scale
- Parameters
-
◆ startGesture
◆ startMotion
◆ stopGesture
◆ stopMotion
◆ vrPlayer
The documentation for this protocol was generated from the following file: