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>
10 #import "JCMediaDeviceConstants.h"
11 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
12 #import <UIKit/UIKit.h>
13 #define JCView UIView
14 #elif TARGET_OS_MAC
15 #import <AppKit/AppKit.h>
16 #define JCView NSView
17 #endif
18 
27 @interface JCMediaDeviceVideoCanvas : NSObject
28 
32 @property (nonatomic, readonly) NSString* videoSource;
33 
37 @property (nonatomic, readonly, strong) JCView* videoView;
38 
42 @property (nonatomic, readonly) JCMediaDeviceRender renderType;
43 
47 @property (nonatomic) id customData;
48 
54 -(bool)replace:(NSString*)videoSource;
55 
59 -(void)pause;
60 
64 -(void)resume;
65 
70 -(void)rotate:(int)angle;
71 
84 -(bool)snapshot:(int)width heigh:(int)height filePath:(NSString*)filePath;
85 
98 -(bool)videoMirror:(JCMediaDeviceMirror)mirrorType;
99 
114 -(bool)focus:(float)xPercent yPercent:(float)yPercent;
115 
116 @end
最后更新时间: 2021/11/9 17:34:32