#import <JCMediaDeviceVideoCanvas.h>
◆ initWithVideoSource:renderType:
- (instancetype) initWithVideoSource: |
|
(NSString *) |
videoSource |
renderType: |
|
(int) |
type |
|
|
| |
|
implementation |
@breif 构造视频对象
- 参数
-
videoSource | 视频源 |
type | 渲染模式,ZmfRenderMode |
- 警告
- 上层不要直接调用此函数
◆ initWithVideoSource:renderType:view:
- (instancetype) initWithVideoSource: |
|
(NSString *) |
videoSource |
renderType: |
|
(int) |
type |
view: |
|
(UIView *) |
view |
|
|
| |
|
implementation |
@breif 构造视频对象
- 参数
-
videoSource | 视频源 |
type | 渲染模式,ZmfRenderMode |
view | 视图对象 |
- 警告
- 上层不要直接调用此函数
◆ pause
◆ replace:
- (bool) replace: |
|
(NSString *) |
videoSource |
|
更新视频渲染标识
- 参数
-
- 返回
- 成功返回 true,失败返回 false
◆ resume
◆ rotate:
- (void) rotate: |
|
(int) |
angle |
|
旋转角度,必须是90的倍数,该角度表示与屏幕正方向旋转后的夹角
- 参数
-
◆ snapshot:heigh:filePath:
- (bool) snapshot: |
|
(int) |
width |
heigh: |
|
(int) |
height |
filePath: |
|
(NSString *) |
filePath |
|
|
| |
视频通话截图
- 参数
-
width | 截屏宽度像素,-1为视频源像素 |
height | 截屏高度像素,-1为视频源像素 |
filePath | 文件路径,需精确到文件名及格式,例如:/Documents/JuphoonCloud/picture.png。请确保目录存在且可写。 |
- 返回
- 是否成功
◆ isCamera
◆ renderType
◆ rotateAngleToScreen
|
readwritenonatomicassignimplementation |
◆ videoSource
- (NSString*) videoSource |
|
readnonatomiccopy |
◆ videoView