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