zjf
2023-03-13 881f0da670f20c401c1e1d08b36253abb28f72d2
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
35
36
37
38
39
//
//  PBAVPlayerManager.h
//  IphoneBIMe
//
//  Created by zjf on 2019/1/3.
//  Copyright © 2019 ProBIM. All rights reserved.
//
 
#import <Foundation/Foundation.h>
typedef enum : NSUInteger {
    ETPlayer_Original,
    ETPlayer_UnkonwError,
    ETPlayer_ReadyToPlay,
    ETPlayer_Playing,
    ETPlayer_PlayFailed,
    ETPlayer_Pause,
    ETPlayer_Stop,
    ETPlayer_Loading,
    ETPlayer_FinishedPlay,
} ETPlayerStatus;
@protocol ETPlayerDelagate <NSObject>
@optional
- (void)currentPlayerStatus:(ETPlayerStatus)playerStatus;
@end
 
@interface PBAVPlayerManager : NSObject
 
@property (nonatomic, assign) ETPlayerStatus status;
@property (nonatomic, weak) id<ETPlayerDelagate> delegate;
//  单例全局访问点
+ (instancetype)sharedManager;
// 播放本地录音
- (void)playItemWithName:(NSString *)recodingName;
// 播放网络音频
- (void)playItemWithUrl:(NSString *)recordingUrl;
// 停止播放
- (void)stopPlay;
 
@end