You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
2.9 KiB

//
// JCMediaDeviceVideoCanvas.h
// JCSDK-OC
//
// Created by maikireton on 2017/8/11.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCMediaDeviceConstants.h"
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
#import <UIKit/UIKit.h>
#define JCView UIView
#elif TARGET_OS_MAC
#import <AppKit/AppKit.h>
#define JCView NSView
#endif
/**
* @addtogroup
* @{
*/
/**
*
*/
@interface JCMediaDeviceVideoCanvas : NSObject
/**
*
*/
@property (nonatomic, readonly) NSString* videoSource;
/**
*
*/
@property (nonatomic, readonly, strong) JCView* videoView;
/**
*
*/
@property (nonatomic, readonly) JCMediaDeviceRender renderType;
/**
*
*/
@property (nonatomic) id customData;
/**
*
* @param videoSource
* @return true false
*/
-(bool)replace:(NSString*)videoSource;
/**
*
*/
-(void)pause;
/**
*
*/
-(void)resume;
/**
* 90
* @param angle
* @return
* - true:
* - false:
*/
-(bool)rotate:(int)angle;
/**
*
*
*
*
* @param width -1
* @param height -1
* @param filePath **/Documents/JuphoonCloud/picture.png**
* @return
* - true:
* - false:
*/
-(bool)snapshot:(int)width heigh:(int)height filePath:(NSString*)filePath;
/**
*
*
*
*
* @param mirrorType
* @see JCMediaDeviceMirror
* @return
* - true:
* - false:
*/
-(bool)videoMirror:(JCMediaDeviceMirror)mirrorType;
/**
*
*
*
*
* @note
*
*
* @param xPercent x , 0-1
* @param yPercent y , 0-1
* @return
* - true:
* - false:
*/
-(bool)focus:(float)xPercent yPercent:(float)yPercent;
/**
*
* @param effectType
* @param paramJson json JCMediaDeviceEffectType各类型注释
* @see JCMediaDeviceEffectType
* @return 使
*/
-(bool)setvideoEffect:(JCMediaDeviceEffectType)effectType andParam:(NSString*)paramJson;
/**
*
*
* @return 使
*/
-(bool)enableFreeze:(bool)enable;
@end