Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: webrtc/webrtc/modules/media_file/interface/media_file_defines.h @ 0:4bda6873e34c

pub_scrub_3792 tip
Last change on this file since 0:4bda6873e34c was 0:4bda6873e34c, checked in by Michael Prittie <mprittie@…>, 6 years ago

Scrubbed password for publication.

File size: 1.9 KB
Line 
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_INTERFACE_MEDIA_FILE_DEFINES_H_
12#define WEBRTC_MODULES_MEDIA_FILE_INTERFACE_MEDIA_FILE_DEFINES_H_
13
14#include "webrtc/engine_configurations.h"
15#include "webrtc/modules/interface/module_common_types.h"
16#include "webrtc/typedefs.h"
17
18namespace webrtc {
19// Callback class for the MediaFile class.
20class FileCallback
21{
22public:
23    virtual ~FileCallback(){}
24
25    // This function is called by MediaFile when a file has been playing for
26    // durationMs ms. id is the identifier for the MediaFile instance calling
27    // the callback.
28    virtual void PlayNotification(const int32_t id,
29                                  const uint32_t durationMs) = 0;
30
31    // This function is called by MediaFile when a file has been recording for
32    // durationMs ms. id is the identifier for the MediaFile instance calling
33    // the callback.
34    virtual void RecordNotification(const int32_t id,
35                                    const uint32_t durationMs) = 0;
36
37    // This function is called by MediaFile when a file has been stopped
38    // playing. id is the identifier for the MediaFile instance calling the
39    // callback.
40    virtual void PlayFileEnded(const int32_t id) = 0;
41
42    // This function is called by MediaFile when a file has been stopped
43    // recording. id is the identifier for the MediaFile instance calling the
44    // callback.
45    virtual void RecordFileEnded(const int32_t id) = 0;
46
47protected:
48    FileCallback() {}
49};
50}  // namespace webrtc
51#endif // WEBRTC_MODULES_MEDIA_FILE_INTERFACE_MEDIA_FILE_DEFINES_H_
Note: See TracBrowser for help on using the repository browser.