2019-11-30 15:28:17 +00:00
|
|
|
#import <Flutter/Flutter.h>
|
|
|
|
|
|
|
|
@interface AudioPlayer : NSObject<FlutterStreamHandler>
|
|
|
|
|
2020-05-20 14:38:26 +00:00
|
|
|
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar playerId:(NSString*)idParam configuredSession:(BOOL)configuredSession;
|
2019-11-30 15:28:17 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2020-08-04 17:24:52 +00:00
|
|
|
enum ProcessingState {
|
2019-11-30 15:28:17 +00:00
|
|
|
none,
|
2020-08-04 17:24:52 +00:00
|
|
|
loading,
|
|
|
|
buffering,
|
|
|
|
ready,
|
2019-12-27 05:43:09 +00:00
|
|
|
completed
|
2019-11-30 15:28:17 +00:00
|
|
|
};
|
2020-07-27 17:54:00 +00:00
|
|
|
|
|
|
|
enum LoopMode {
|
|
|
|
loopOff,
|
|
|
|
loopOne,
|
|
|
|
loopAll
|
|
|
|
};
|