JRTCSDK-iOS
v1.1
API文档
|
构造函数 | |
(bool) | - replace: |
(void) | - pause |
(void) | - resume |
(void) | - rotate: |
旋转角度,必须是90的倍数,该角度表示与屏幕正方向旋转后的夹角 更多... | |
(bool) | - snapshot:heigh:filePath: |
(void) | - setFrameCallBack: |
属性 | |
NSString * | videoSource |
UIView * | videoView |
JCMediaDeviceRender | renderType |
id | customData |
视频对象,用于UI层方便操作视频
- (void) pause |
暂停视频渲染
- (bool) replace: | (NSString *) | videoSource |
更新视频流ID
videoSource | 视频流ID |
- (void) resume |
恢复视频渲染
- (void) rotate: | (int) | angle |
旋转角度,必须是90的倍数,该角度表示与屏幕正方向旋转后的夹角
angle | 角度值 |
- (void) setFrameCallBack: | (id< JCMediaDeviceVideoFrameCallback >) | frameCallBack |
设置视频帧回调
frameCallBack | 获得视频流数据回调代理对象 |
- (bool) snapshot: | (int) | width | |
heigh: | (int) | height | |
filePath: | (NSString *) | filePath | |
视频通话截图
调用此方法时需要保证该视频对象正在渲染,否则将调用失败
width | 截屏宽度像素,-1为视频源像素 |
height | 截屏高度像素,-1为视频源像素 |
filePath | 文件路径,需精确到文件名及格式,例如:/Documents/JuphoonCloud/picture.png。请确保目录存在且可写。 |
|
readwritenonatomicassign |
自定义数据
|
readnonatomicassign |
渲染模式
|
readnonatomicassign |
视频流ID
|
readnonatomicstrong |
视频视图,用于UI显示