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 
73 -(bool)rotate:(int)angle;
74 
87 -(bool)snapshot:(int)width heigh:(int)height filePath:(NSString*)filePath;
88 
101 -(bool)videoMirror:(JCMediaDeviceMirror)mirrorType;
102 
117 -(bool)focus:(float)xPercent yPercent:(float)yPercent;
118 
119 
127 -(bool)setvideoEffect:(JCMediaDeviceEffectType)effectType andParam:(NSString*)paramJson;
128 
134 -(bool)enableFreeze:(bool)enable;
135 
136 
137 @end
最后更新时间: 2023/4/28 11:17:11