123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- //
- // OralCavityManager.h
- // OralCavityFramework
- //
- // Created by ss on 2024/8/30.
- //
- #import <Foundation/Foundation.h>
- //#include <CoreVideo/CoreVideo.h>
- #import <UIKit/UIKit.h>
- @interface OralCavityManager : NSObject
- + (instancetype)sharedInstance;
- //返回图片存储路径
- @property (nonatomic, copy) void (^getPhotoPath)(NSString *path);
- //返回视频存储路径
- @property (nonatomic, copy) void (^getVideoPath)(NSString *path);
- //返回保存图片结果
- @property (nonatomic, copy) void (^getSavePhotoPath)(NSString *path);
- //返回保存视频结果
- @property (nonatomic, copy) void (^getSaveRecordPath)(NSString *path);
- //获取视频pixelBuffer
- @property (nonatomic, copy) void (^getPixelBuffer)(CVPixelBufferRef pixelBuffer);
- //获取视频pixelBuffer
- //@property (nonatomic, copy) void (^getVideoView)(UIView *videoView);
- @property (nonatomic, copy) void (^getVideoView)(CALayer *videoView);
- //设备拍照
- @property (nonatomic, copy) void (^onDeviceTakePhoto)(void);
- //1: 成功 -4 10秒链接超时。-1 错误
- - (int)connectToServer;
- //开始视频
- - (void)startVideo;
- //停止视频
- - (void)stopVideo;
- //拍照 前缀
- - (void)takePhoto:(NSString *)str;
- //开始录像
- - (void)startRecord:(NSString *)str;
- //停止录像
- - (void)stopRecord;
- //获取图片列表
- - (NSArray *)getPhotoList;
- //获取视频列表
- - (NSArray *)getVideoList;
- //删除指定文件
- - (BOOL)deleteFile:(NSString *)filePath;
- //横屏
- - (void)getLandscapeView:(NSArray *)arr;
- //竖屏
- - (void)getPortraitView;
- //保存照片 数组,两个元素,0:临时视频路径,1:编辑后视频路径
- - (void)savePhoto:(NSArray *)arr;
- //保存视频 数组,两个元素,0:临时视频路径,1:编辑后视频路径
- - (void)saveRecord:(NSArray *)arr;
- @end
|