JCSDK Objective-C API Reference for iOS/macOS  2.5.1
构造函数 | 属性 | 所有成员列表
JCMediaDeviceVideoCanvas类 参考

构造函数

(bool) - replace:
 
(void) - pause
 
(void) - resume
 
(void) - rotate:
 
(bool) - snapshot:heigh:filePath:
 

属性

NSString * videoSource
 
JCView * videoView
 
JCMediaDeviceRender renderType
 
id customData
 

详细描述

视频对象

函数文档

◆ pause

- (void) pause

暂停视频渲染

◆ replace:

- (bool) replace: (NSString *)  videoSource

更新视频渲染标识

参数
videoSource视频源
返回
成功返回 true,失败返回 false

◆ resume

- (void) resume

恢复视频渲染

◆ rotate:

- (void) rotate: (int)  angle

旋转角度,必须是90的倍数,该角度表示与屏幕正方向旋转后的夹角

参数
angle角度值

◆ snapshot:heigh:filePath:

- (bool) snapshot: (int)  width
heigh: (int)  height
filePath: (NSString *)  filePath 

视频通话截图

调用此方法时需要保证该视频对象正在渲染,否则将调用失败

参数
width截屏宽度像素,-1为视频源像素
height截屏高度像素,-1为视频源像素
filePath文件路径,需精确到文件名及格式,例如:/Documents/JuphoonCloud/picture.png。请确保目录存在且可写。
返回
是否成功
  • true: 成功
  • false: 失败

属性说明

◆ customData

- (id) customData
readwritenonatomicassign

自定义数据

◆ renderType

- (JCMediaDeviceRender) renderType
readnonatomicassign

渲染模式

◆ videoSource

- (NSString*) videoSource
readnonatomicassign

渲染标识

◆ videoView

- (JCView*) videoView
readnonatomicstrong

获取视频渲染视图


该类的文档由以下文件生成: