‪JMSDK iOS  ‪v2.8.0
‪API文档
JCMediaDeviceVideoCanvas.h
浏览该文件的文档.
1 //
2 // JCMediaDeviceVideoCanvas.h
3 // JCSDK-OC
4 //
5 // Created by maikireton on 2017/8/11.
6 // Copyright © 2017年 juphoon. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
11 
12 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
13 #import <UIKit/UIKit.h>
14 #define JCView UIView
15 #elif TARGET_OS_MAC
16 #import <AppKit/AppKit.h>
17 #define JCView NSView
18 #endif
19 
20 
24 @interface JCMediaDeviceVideoCanvas : NSObject
25 
29 @property (nonatomic, readonly) NSString* videoSource;
30 
34 @property (nonatomic, readonly, strong) JCView* videoView;
35 
39 @property (nonatomic, readonly) int renderType;
40 
44 @property (nonatomic) id customData;
45 
51 -(bool)replace:(NSString*)videoSource;
52 
56 -(void)pause;
57 
61 -(void)resume;
62 
67 -(void)rotate:(int)angle;
68 
76 -(bool)snapshot:(int)width heigh:(int)height filePath:(NSString*)filePath;
77 
78 @end
视频对象,用于UI层方便操作视频
Definition: JCMediaDeviceVideoCanvas.h:25
void pause()
暂停视频渲染
JCView * videoView
Definition: JCMediaDeviceVideoCanvas.h:34
NSString * videoSource
Definition: JCMediaDeviceVideoCanvas.h:29
void resume()
恢复视频渲染
id customData
Definition: JCMediaDeviceVideoCanvas.h:44
int renderType
Definition: JCMediaDeviceVideoCanvas.h:39