-
Notifications
You must be signed in to change notification settings - Fork 4
/
RNAVEditing.h
34 lines (25 loc) · 1020 Bytes
/
RNAVEditing.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <RCTBridgeModule.h>
#endif
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import <Photos/Photos.h>
@interface RNAVEditing : NSObject<RCTBridgeModule>
- (void)exportDidFinish:(AVAssetExportSession*)session;
- (void)audioVideoEdit:(AVURLAsset *) videoAsset
videoRange:(CMTimeRange ) videoRange
audioAsset:(AVURLAsset *) audioAsset
AudioRange:(CMTimeRange ) AudioRange
duration:(CMTime) duration
errorCallback:(RCTResponseSenderBlock)failureCallback
callback:(RCTResponseSenderBlock)successCallback;
-(void)MergeVideo:(NSDictionary *)videoObject
audioObject:(NSDictionary *)audioObject
errorCallback:(RCTResponseSenderBlock)failureCallback
callback:(RCTResponseSenderBlock)successCallback;
@property(nonatomic,retain)AVURLAsset* videoAsset;
@property(nonatomic,retain)AVURLAsset* audioAsset;
@end