| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /************************************************************
- * * Hyphenate CONFIDENTIAL
- * __________________
- * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
- *
- * NOTICE: All information contained herein is, and remains
- * the property of Hyphenate Inc.
- * Dissemination of this information or reproduction of this material
- * is strictly forbidden unless prior written permission is obtained
- * from Hyphenate Inc.
- */
- #import "EMCDDeviceManagerBase.h"
- @interface EMCDDeviceManager (Media)
- #pragma mark - AudioPlayer
- // Play the audio
- - (void)asyncPlayingWithPath:(NSString *)aFilePath
- completion:(void(^)(NSError *error))completon;
- // Stop playing
- - (void)stopPlaying;
- - (void)stopPlayingWithChangeCategory:(BOOL)isChange;
- -(BOOL)isPlaying;
- #pragma mark - AudioRecorder
- // Start recording
- - (void)asyncStartRecordingWithFileName:(NSString *)fileName
- completion:(void(^)(NSError *error))completion;
- // Stop recording
- -(void)asyncStopRecordingWithCompletion:(void(^)(NSString *recordPath,
- NSInteger aDuration,
- NSError *error))completion;
- // Cancel recording
- -(void)cancelCurrentRecording;
- -(BOOL)isRecording;
- // Get the saved data path
- + (NSString*)dataPath;
- @end
|