OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license | |
5 * that can be found in the LICENSE file in the root of the source | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_MODULES_MEDIA_FILE_INCLUDE_MEDIA_FILE_DEFINES_H_ | |
12 #define WEBRTC_MODULES_MEDIA_FILE_INCLUDE_MEDIA_FILE_DEFINES_H_ | |
13 | |
14 #pragma message("WARNING: media_file/interface is DEPRECATED; use media_file/inc
lude") | |
15 | |
16 #include "webrtc/engine_configurations.h" | |
17 #include "webrtc/modules/include/module_common_types.h" | |
18 #include "webrtc/typedefs.h" | |
19 | |
20 namespace webrtc { | |
21 // Callback class for the MediaFile class. | |
22 class FileCallback | |
23 { | |
24 public: | |
25 virtual ~FileCallback(){} | |
26 | |
27 // This function is called by MediaFile when a file has been playing for | |
28 // durationMs ms. id is the identifier for the MediaFile instance calling | |
29 // the callback. | |
30 virtual void PlayNotification(const int32_t id, | |
31 const uint32_t durationMs) = 0; | |
32 | |
33 // This function is called by MediaFile when a file has been recording for | |
34 // durationMs ms. id is the identifier for the MediaFile instance calling | |
35 // the callback. | |
36 virtual void RecordNotification(const int32_t id, | |
37 const uint32_t durationMs) = 0; | |
38 | |
39 // This function is called by MediaFile when a file has been stopped | |
40 // playing. id is the identifier for the MediaFile instance calling the | |
41 // callback. | |
42 virtual void PlayFileEnded(const int32_t id) = 0; | |
43 | |
44 // This function is called by MediaFile when a file has been stopped | |
45 // recording. id is the identifier for the MediaFile instance calling the | |
46 // callback. | |
47 virtual void RecordFileEnded(const int32_t id) = 0; | |
48 | |
49 protected: | |
50 FileCallback() {} | |
51 }; | |
52 } // namespace webrtc | |
53 #endif // WEBRTC_MODULES_MEDIA_FILE_INCLUDE_MEDIA_FILE_DEFINES_H_ | |
OLD | NEW |