AliyunPlayer v6.19.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
<AliVRPlayerViewProtocol> Protocol Reference

#include "AliVRPlayerViewProtocol.h"

Inheritance diagram for <AliVRPlayerViewProtocol>:
AliGLVRPlayerView AliVRPlayerView

Instance Methods

(void) - handleGestureWithTouches:
 
(void) - handlePanGesture:
 通过手势控制vr播放器的角度
 
(void) - resetGestureAngle
 
(void) - rotateVRSceneWithX:andY:
 设置VR播放器旋转的角度
 
(void) - setDisplayMode:
 设置VR播放器的展示方式
 
(void) - setFovDegrees:
 
(void) - setInteractionOptions:enabled:
 设置VR播放器的交互类型为开启或者关闭
 
(void) - setPlayerViewOrientation:
 设置VR播放器容器的朝向
 
(void) - setVRDelegate:
 
(void) - setVRDisplayContentsWithImage:
 设置播放器显示全景图
 
(void) - setVRSceneRotate:
 设置VR播放器的旋转角度
 
(void) - setVRSceneScale:
 设置VR播放器的放大倍数
 
(void) - startGesture
 
(void) - startMotion
 
(void) - stopGesture
 
(void) - stopMotion
 

Properties

AliVRPlayervrPlayer
 

Method Documentation

◆ handleGestureWithTouches:

- (void) handleGestureWithTouches: (NSSet *) touches

◆ handlePanGesture:

- (void) handlePanGesture: (UIPanGestureRecognizer *) paramSender

通过手势控制vr播放器的角度

Parameters
paramSender滑动手势

Set VRPlayer rotate radians with axis

Parameters
paramSenderPan Gesture

◆ resetGestureAngle

- (void) resetGestureAngle

◆ rotateVRSceneWithX:andY:

- (void) rotateVRSceneWithX: (CGFloat) x
andY: (CGFloat) y 

设置VR播放器旋转的角度

Parameters
xx轴旋转的角度
yy轴旋转的角度

Set VRPlayer rotate radians with axis

Parameters
xradians of x axis
yradians of y axis

◆ setDisplayMode:

- (void) setDisplayMode: (AliVRPlayerViewDisplayMode) displayMode

设置VR播放器的展示方式

Parameters
displayModeAliVRPlayerViewDisplayMode360 or AliVRPlayerViewDisplayModeGlass,默认值为 AliVRPlayerViewDisplayMode360

Set VRPlayer display mode (AliVRPlayerViewDisplayMode360 or AliVRPlayerViewDisplayModeGlass)

Parameters
displayModeAliVRPlayerViewDisplayMode360 or AliVRPlayerViewDisplayModeGlass (Default value is AliVRPlayerViewDisplayMode360)

◆ setFovDegrees:

- (void) setFovDegrees: (CGFloat) degrees

◆ setInteractionOptions:enabled:

- (void) setInteractionOptions: (AliVRPlayerInteractiveOptions) option
enabled: (BOOL) enable 

设置VR播放器的交互类型为开启或者关闭

Parameters
optionAliVRPlayerInteractiveOptionsPinch、AliVRPlayerInteractiveOptionsVerticalEnabled、AliVRPlayerInteractiveOptionsHorizontal、AliVRPlayerInteractiveOptionsDeviceMotion
enableYES or NO (默认是AliVRPlayerInteractiveOptionsDeviceMotion开启状态,其他的为关闭状态)

Set VRPlayer Interactive mode

Parameters
optionAliVRPlayerInteractiveOptionsPinch、AliVRPlayerInteractiveOptionsVerticalEnabled、AliVRPlayerInteractiveOptionsHorizontal、AliVRPlayerInteractiveOptionsDeviceMotion
enableYES or NO (Default is AliVRPlayerInteractiveOptionsDeviceMotion YES,others is NO )

◆ setPlayerViewOrientation:

- (void) setPlayerViewOrientation: (AliVRPlayerViewOrientation) orientation

设置VR播放器容器的朝向

Parameters
orientation参考 AliVRPlayerViewOrientation

Set VRPlayer view orientation

Parameters
orientationsee AliVRPlayerViewOrientation

◆ setVRDelegate:

- (void) setVRDelegate: (id< AliVRPlayerDelegate >) delegate

◆ setVRDisplayContentsWithImage:

- (void) setVRDisplayContentsWithImage: (UIImage *) image

设置播放器显示全景图

Parameters
image要展示的全景图

Set VRPlayer display with 360 image

Parameters
image360 image/Users/tony/Aliyun/AliPlayer_5.3.4/apsaraPlayer_iOS/source/AliVRPlayerView.h

◆ setVRSceneRotate:

- (void) setVRSceneRotate: (CGFloat) rotate

设置VR播放器的旋转角度

Parameters
rotate

Set VRPlayer view rotate

Parameters
rotate

◆ setVRSceneScale:

- (void) setVRSceneScale: (CGFloat) scale

设置VR播放器的放大倍数

Parameters
scale

Set VRPlayer view scale

Parameters
scale

◆ startGesture

- (void) startGesture

◆ startMotion

- (void) startMotion

◆ stopGesture

- (void) stopGesture

◆ stopMotion

- (void) stopMotion

Property Documentation

◆ vrPlayer

- (AliVRPlayer*) vrPlayer
readwritenonatomicweak

The documentation for this protocol was generated from the following file: