JCSDK Objective-C API Reference for iOS/macOS
2.5.1
|
构造函数 | |
(bool) | - replace: |
(void) | - pause |
(void) | - resume |
(void) | - rotate: |
(bool) | - snapshot:heigh:filePath: |
属性 | |
NSString * | videoSource |
JCView * | videoView |
JCMediaDeviceRender | renderType |
id | customData |
视频对象
- (void) pause |
暂停视频渲染
- (bool) replace: | (NSString *) | videoSource |
更新视频渲染标识
videoSource | 视频源 |
- (void) resume |
恢复视频渲染
- (void) rotate: | (int) | angle |
旋转角度,必须是90的倍数,该角度表示与屏幕正方向旋转后的夹角
angle | 角度值 |
- (bool) snapshot: | (int) | width | |
heigh: | (int) | height | |
filePath: | (NSString *) | filePath | |
视频通话截图
调用此方法时需要保证该视频对象正在渲染,否则将调用失败
width | 截屏宽度像素,-1为视频源像素 |
height | 截屏高度像素,-1为视频源像素 |
filePath | 文件路径,需精确到文件名及格式,例如:/Documents/JuphoonCloud/picture.png。请确保目录存在且可写。 |
|
readwritenonatomicassign |
自定义数据
|
readnonatomicassign |
渲染模式
|
readnonatomicassign |
渲染标识
|
readnonatomicstrong |
获取视频渲染视图