EMAudioPlayerHelper.h 741 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // EMAudioPlayerHelper.h
  3. // ChatDemo-UI3.0
  4. //
  5. // Created by XieYajie on 2019/1/29.
  6. // Copyright © 2019 XieYajie. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface EMAudioPlayerHelper : NSObject
  11. @property (nonatomic, strong) id model;
  12. + (instancetype)sharedHelper;
  13. //- (void)startPlayerWithPath:(NSString *)aPath
  14. // model:(id)aModel
  15. // completion:(void(^)(NSError *error))aCompleton;
  16. - (void)startPlayerWithPath:(NSString *)aPath
  17. model:(id)aModel
  18. AVAudioSessionCategory:(AVAudioSessionCategory)playCategory
  19. completion:(void(^)(NSError *error))aCompleton;
  20. - (void)stopPlayer;
  21. @end
  22. NS_ASSUME_NONNULL_END