MeiCam SDK For iOS  3.10.0
NvsBeatDetection.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright China Digital Video (Beijing) Limited, 2019. All rights reserved.
4 //
5 // This code and information is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the implied
7 // warranties of merchantability and/or fitness for a particular purpose.
8 //
9 //--------------------------------------------------------------------------------
10 // Birth Date: Oct 28. 2019
11 // Author: NewAuto video team
12 //================================================================================
13 
14 #import <Foundation/Foundation.h>
15 #import "NvsCommonDef.h"
16 
24 NS_ASSUME_NONNULL_BEGIN
25 
32 @protocol NvsBeatDetectionDelegate <NSObject>
33 
46 -(void)onFinished:(NSArray<NSNumber*>*)rhythmPoints beats:(NSArray<NSNumber*>*)beats errorType:(int)errorType;
47 
56 -(void)onProgress:(float)progress;
57 
58 @end
59 
60 NVS_EXPORT @interface NvsBeatDetection : NSObject
61 
62 @property (nonatomic,weak) id<NvsBeatDetectionDelegate> delegate;
63 
76 + (instancetype)sharedInstance:(int)flag;
77 
85 + (void)close;
86 
101 - (BOOL)startDetect:(NSString*)inputFilePath sensitivity:(int)sensitivity;
102 
110 - (void)cancelDetect;
111 
112 @end
113 
114 NS_ASSUME_NONNULL_END
NvsBeatDetectionDelegate-p
Beat detection class.
Definition: NvsBeatDetection.h:32
NvsBeatDetection
Definition: NvsBeatDetection.h:61
NvsBeatDetection::delegate
id< NvsBeatDetectionDelegate > delegate
Definition: NvsBeatDetection.h:62
+[NvsBeatDetection close]
void close()
Destroys the beat detection object instance. note: it can be created again after destruction.
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsCommonDef.h
-[NvsBeatDetection cancelDetect]
void cancelDetect()
Cancel beat detection.