2015-09-07 04:38:33 -07:00
|
|
|
/*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
|
2015-09-07 04:38:33 -07:00
|
|
|
*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2015-09-07 04:38:33 -07:00
|
|
|
*/
|
|
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#ifndef WEBRTC_API_MEDIACONTROLLER_H_
|
|
|
|
|
#define WEBRTC_API_MEDIACONTROLLER_H_
|
2015-09-15 12:26:33 +02:00
|
|
|
|
|
|
|
|
#include "webrtc/base/thread.h"
|
|
|
|
|
|
2015-10-15 07:26:07 -07:00
|
|
|
namespace cricket {
|
|
|
|
|
class ChannelManager;
|
2016-02-12 02:27:06 -08:00
|
|
|
struct MediaConfig;
|
2015-10-15 07:26:07 -07:00
|
|
|
} // namespace cricket
|
|
|
|
|
|
2015-09-15 12:26:33 +02:00
|
|
|
namespace webrtc {
|
|
|
|
|
class Call;
|
|
|
|
|
class VoiceEngine;
|
|
|
|
|
|
|
|
|
|
// The MediaController currently owns shared state between media channels, but
|
|
|
|
|
// in the future will create and own RtpSenders and RtpReceivers.
|
|
|
|
|
class MediaControllerInterface {
|
|
|
|
|
public:
|
2015-10-15 07:26:07 -07:00
|
|
|
static MediaControllerInterface* Create(
|
2016-02-12 02:27:06 -08:00
|
|
|
const cricket::MediaConfig& config,
|
2015-10-15 07:26:07 -07:00
|
|
|
rtc::Thread* worker_thread,
|
|
|
|
|
cricket::ChannelManager* channel_manager);
|
2015-09-15 12:26:33 +02:00
|
|
|
|
|
|
|
|
virtual ~MediaControllerInterface() {}
|
2016-03-01 12:42:03 -08:00
|
|
|
virtual void Close() = 0;
|
2015-09-15 12:26:33 +02:00
|
|
|
virtual webrtc::Call* call_w() = 0;
|
2015-10-15 07:26:07 -07:00
|
|
|
virtual cricket::ChannelManager* channel_manager() const = 0;
|
2016-02-12 02:27:06 -08:00
|
|
|
virtual const cricket::MediaConfig& config() const = 0;
|
2015-09-15 12:26:33 +02:00
|
|
|
};
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2016-02-10 10:53:12 +01:00
|
|
|
#endif // WEBRTC_API_MEDIACONTROLLER_H_
|