视频画布对象的属性

最近更新时间:2022-09-20 05:17:40

视频显示视窗

@property (strong, nonatomic) VIEW_CLASS* _Nullable view;

VIEW_CLASS 为统称,具体为:

  • iOS: UIView
  • MacOS: NSView

视频显示模式

@property (assign, nonatomic) ARVideoRenderMode renderMode;
  • ARVideoRenderModeHidden 优先保证视窗被填满。视频尺寸等比缩放,直至整个视窗被视频填满。如果视频长宽与显示窗口不同,则视频流会按照显示视窗的比例进行周边裁剪或图像拉伸后填满视窗。

  • ARVideoRenderModeFit 优先保证视频内容全部显示。视频尺寸等比缩放,直至视频窗口的一边与视窗边框对齐。如果视频尺寸与显示视窗尺寸不一致,在保持长宽比的前提下,将视频进行缩放后填满视窗,缩放后的视频四周会有一圈黑边。

频道id

@property (copy, nonatomic) NSString * _Nullable channelId;
  • 0 ~ 9
  • a ~ z A ~Z
  • "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ",".

用户id

@property (copy, nonatomic) NSString * _Nonnull uid;

视图镜像模式

@property (assign, nonatomic) ARVideoMirrorMode mirrorMode;
  • ARVideoMirrorModeAuto = 0, (Default) 由 SDK 决定镜像模式

  • ARVideoMirrorModeEnabled = 1, 启用镜像模式

  • ARVideoMirrorModeDisabled = 2, 关闭镜像模式