EMAudioPlayerUtil.h 804 B

1234567891011121314151617181920212223242526272829
  1. /************************************************************
  2. * * Hyphenate CONFIDENTIAL
  3. * __________________
  4. * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
  5. *
  6. * NOTICE: All information contained herein is, and remains
  7. * the property of Hyphenate Inc.
  8. * Dissemination of this information or reproduction of this material
  9. * is strictly forbidden unless prior written permission is obtained
  10. * from Hyphenate Inc.
  11. */
  12. #import <Foundation/Foundation.h>
  13. @interface EMAudioPlayerUtil : NSObject
  14. + (BOOL)isPlaying;
  15. // Get the path of what is currently being played
  16. + (NSString *)playingFilePath;
  17. // Play the audio(wav)from the path
  18. + (void)asyncPlayingWithPath:(NSString *)aFilePath
  19. completion:(void(^)(NSError *error))completon;
  20. + (void)stopCurrentPlaying;
  21. @end