Moved call.h and most of api/call/* into call/
BUG=webrtc:6716 Review-Url: https://codereview.webrtc.org/2550273003 Cr-Commit-Position: refs/heads/master@{#15460}
This commit is contained in:
parent
7495c8c3ac
commit
f515ab8c3f
@ -229,6 +229,9 @@ if (!build_with_chromium) {
|
|||||||
# TODO(kjellander): Remove this whenever possible. GN's static_library
|
# TODO(kjellander): Remove this whenever possible. GN's static_library
|
||||||
# target type requires at least one object to avoid errors linking.
|
# target type requires at least one object to avoid errors linking.
|
||||||
"build/no_op_function.cc",
|
"build/no_op_function.cc",
|
||||||
|
|
||||||
|
# TODO(ossu): Keep this here until donwstream projects have updated.
|
||||||
|
# http://bugs.webrtc.org/6716
|
||||||
"call.h",
|
"call.h",
|
||||||
"config.h",
|
"config.h",
|
||||||
|
|
||||||
|
|||||||
@ -32,6 +32,12 @@ include_rules = [
|
|||||||
|
|
||||||
# The below rules will be removed when webrtc:4243 is fixed.
|
# The below rules will be removed when webrtc:4243 is fixed.
|
||||||
specific_include_rules = {
|
specific_include_rules = {
|
||||||
|
# The call/call.h exception is here only until the peerconnection
|
||||||
|
# implementation has been moved out of api/. See:
|
||||||
|
# http://bugs.webrtc.org/5883
|
||||||
|
"call\.h": [
|
||||||
|
"+webrtc/call/call.h"
|
||||||
|
],
|
||||||
"video_frame\.h": [
|
"video_frame\.h": [
|
||||||
"+webrtc/common_video",
|
"+webrtc/common_video",
|
||||||
],
|
],
|
||||||
|
|||||||
@ -20,11 +20,7 @@ group("api") {
|
|||||||
|
|
||||||
rtc_source_set("call_api") {
|
rtc_source_set("call_api") {
|
||||||
sources = [
|
sources = [
|
||||||
"call/audio_receive_stream.h",
|
|
||||||
"call/audio_send_stream.cc",
|
|
||||||
"call/audio_send_stream.h",
|
|
||||||
"call/audio_sink.h",
|
"call/audio_sink.h",
|
||||||
"call/audio_state.h",
|
|
||||||
"call/flexfec_receive_stream.h",
|
"call/flexfec_receive_stream.h",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@ -18,10 +18,22 @@ specific_include_rules = {
|
|||||||
"+base/android", # Allowed only for Android tests.
|
"+base/android", # Allowed only for Android tests.
|
||||||
"+webrtc/voice_engine",
|
"+webrtc/voice_engine",
|
||||||
],
|
],
|
||||||
|
# The call/call.h exceptions are here only until the peerconnection
|
||||||
|
# implementation has been moved out of api/. See:
|
||||||
|
# http://bugs.webrtc.org/5883
|
||||||
|
"mediacontroller\.cc": [
|
||||||
|
"+webrtc/call/call.h"
|
||||||
|
],
|
||||||
|
"peerconnection\.cc": [
|
||||||
|
"+webrtc/call/call.h"
|
||||||
|
],
|
||||||
"peerconnection_jni\.cc": [
|
"peerconnection_jni\.cc": [
|
||||||
"+webrtc/voice_engine",
|
"+webrtc/voice_engine",
|
||||||
],
|
],
|
||||||
"peerconnectionfactory\.cc": [
|
"peerconnectionfactory\.cc": [
|
||||||
"+webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h",
|
"+webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h",
|
||||||
],
|
],
|
||||||
|
"webrtcsession\.cc": [
|
||||||
|
"+webrtc/call/call.h"
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
include_rules = [
|
|
||||||
"+webrtc/modules/audio_coding/codecs",
|
|
||||||
]
|
|
||||||
|
|
||||||
@ -15,7 +15,7 @@
|
|||||||
#include "webrtc/base/bind.h"
|
#include "webrtc/base/bind.h"
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/base/constructormagic.h"
|
#include "webrtc/base/constructormagic.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/pc/channelmanager.h"
|
#include "webrtc/pc/channelmanager.h"
|
||||||
#include "webrtc/media/base/mediachannel.h"
|
#include "webrtc/media/base/mediachannel.h"
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
#include "webrtc/base/stringencode.h"
|
#include "webrtc/base/stringencode.h"
|
||||||
#include "webrtc/base/stringutils.h"
|
#include "webrtc/base/stringutils.h"
|
||||||
#include "webrtc/base/trace_event.h"
|
#include "webrtc/base/trace_event.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/media/sctp/sctpdataengine.h"
|
#include "webrtc/media/sctp/sctpdataengine.h"
|
||||||
#include "webrtc/pc/channelmanager.h"
|
#include "webrtc/pc/channelmanager.h"
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/base/stringencode.h"
|
#include "webrtc/base/stringencode.h"
|
||||||
#include "webrtc/base/stringutils.h"
|
#include "webrtc/base/stringutils.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/media/base/mediaconstants.h"
|
#include "webrtc/media/base/mediaconstants.h"
|
||||||
#include "webrtc/media/base/videocapturer.h"
|
#include "webrtc/media/base/videocapturer.h"
|
||||||
#include "webrtc/p2p/base/portallocator.h"
|
#include "webrtc/p2p/base/portallocator.h"
|
||||||
|
|||||||
@ -30,8 +30,8 @@ rtc_static_library("audio") {
|
|||||||
deps = [
|
deps = [
|
||||||
"..:webrtc_common",
|
"..:webrtc_common",
|
||||||
"../api:audio_mixer_api",
|
"../api:audio_mixer_api",
|
||||||
"../api:call_api",
|
|
||||||
"../base:rtc_base_approved",
|
"../base:rtc_base_approved",
|
||||||
|
"../call:call_interfaces",
|
||||||
"../common_audio",
|
"../common_audio",
|
||||||
"../modules/audio_device",
|
"../modules/audio_device",
|
||||||
"../modules/audio_processing",
|
"../modules/audio_processing",
|
||||||
|
|||||||
@ -14,11 +14,11 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "webrtc/api/audio/audio_mixer.h"
|
#include "webrtc/api/audio/audio_mixer.h"
|
||||||
#include "webrtc/api/call/audio_receive_stream.h"
|
|
||||||
#include "webrtc/api/call/audio_state.h"
|
|
||||||
#include "webrtc/audio/audio_state.h"
|
#include "webrtc/audio/audio_state.h"
|
||||||
#include "webrtc/base/constructormagic.h"
|
#include "webrtc/base/constructormagic.h"
|
||||||
#include "webrtc/base/thread_checker.h"
|
#include "webrtc/base/thread_checker.h"
|
||||||
|
#include "webrtc/call/audio_receive_stream.h"
|
||||||
|
#include "webrtc/call/audio_state.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|||||||
@ -13,10 +13,10 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_send_stream.h"
|
|
||||||
#include "webrtc/api/call/audio_state.h"
|
|
||||||
#include "webrtc/base/constructormagic.h"
|
#include "webrtc/base/constructormagic.h"
|
||||||
#include "webrtc/base/thread_checker.h"
|
#include "webrtc/base/thread_checker.h"
|
||||||
|
#include "webrtc/call/audio_send_stream.h"
|
||||||
|
#include "webrtc/call/audio_state.h"
|
||||||
#include "webrtc/call/bitrate_allocator.h"
|
#include "webrtc/call/bitrate_allocator.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|||||||
@ -11,12 +11,12 @@
|
|||||||
#ifndef WEBRTC_AUDIO_AUDIO_STATE_H_
|
#ifndef WEBRTC_AUDIO_AUDIO_STATE_H_
|
||||||
#define WEBRTC_AUDIO_AUDIO_STATE_H_
|
#define WEBRTC_AUDIO_AUDIO_STATE_H_
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_state.h"
|
|
||||||
#include "webrtc/audio/audio_transport_proxy.h"
|
#include "webrtc/audio/audio_transport_proxy.h"
|
||||||
#include "webrtc/audio/scoped_voe_interface.h"
|
#include "webrtc/audio/scoped_voe_interface.h"
|
||||||
#include "webrtc/base/constructormagic.h"
|
#include "webrtc/base/constructormagic.h"
|
||||||
#include "webrtc/base/criticalsection.h"
|
#include "webrtc/base/criticalsection.h"
|
||||||
#include "webrtc/base/thread_checker.h"
|
#include "webrtc/base/thread_checker.h"
|
||||||
|
#include "webrtc/call/audio_state.h"
|
||||||
#include "webrtc/voice_engine/include/voe_base.h"
|
#include "webrtc/voice_engine/include/voe_base.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|||||||
158
webrtc/call.h
158
webrtc/call.h
@ -7,159 +7,7 @@
|
|||||||
* in the file PATENTS. All contributing project authors may
|
* in the file PATENTS. All contributing project authors may
|
||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
#ifndef WEBRTC_CALL_H_
|
|
||||||
#define WEBRTC_CALL_H_
|
|
||||||
|
|
||||||
#include <string>
|
// This file is deprecated. It has been moved to the location below. Please
|
||||||
#include <vector>
|
// update your includes! See: http://bugs.webrtc.org/6716
|
||||||
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/api/call/audio_receive_stream.h"
|
|
||||||
#include "webrtc/api/call/audio_send_stream.h"
|
|
||||||
#include "webrtc/api/call/audio_state.h"
|
|
||||||
#include "webrtc/api/call/flexfec_receive_stream.h"
|
|
||||||
#include "webrtc/base/networkroute.h"
|
|
||||||
#include "webrtc/base/platform_file.h"
|
|
||||||
#include "webrtc/base/socket.h"
|
|
||||||
#include "webrtc/common_types.h"
|
|
||||||
#include "webrtc/video_receive_stream.h"
|
|
||||||
#include "webrtc/video_send_stream.h"
|
|
||||||
|
|
||||||
namespace webrtc {
|
|
||||||
|
|
||||||
class AudioProcessing;
|
|
||||||
class RtcEventLog;
|
|
||||||
|
|
||||||
const char* Version();
|
|
||||||
|
|
||||||
enum class MediaType {
|
|
||||||
ANY,
|
|
||||||
AUDIO,
|
|
||||||
VIDEO,
|
|
||||||
DATA
|
|
||||||
};
|
|
||||||
|
|
||||||
class PacketReceiver {
|
|
||||||
public:
|
|
||||||
enum DeliveryStatus {
|
|
||||||
DELIVERY_OK,
|
|
||||||
DELIVERY_UNKNOWN_SSRC,
|
|
||||||
DELIVERY_PACKET_ERROR,
|
|
||||||
};
|
|
||||||
|
|
||||||
virtual DeliveryStatus DeliverPacket(MediaType media_type,
|
|
||||||
const uint8_t* packet,
|
|
||||||
size_t length,
|
|
||||||
const PacketTime& packet_time) = 0;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual ~PacketReceiver() {}
|
|
||||||
};
|
|
||||||
|
|
||||||
// A Call instance can contain several send and/or receive streams. All streams
|
|
||||||
// are assumed to have the same remote endpoint and will share bitrate estimates
|
|
||||||
// etc.
|
|
||||||
class Call {
|
|
||||||
public:
|
|
||||||
struct Config {
|
|
||||||
explicit Config(RtcEventLog* event_log) : event_log(event_log) {
|
|
||||||
RTC_DCHECK(event_log);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const int kDefaultStartBitrateBps;
|
|
||||||
|
|
||||||
// Bitrate config used until valid bitrate estimates are calculated. Also
|
|
||||||
// used to cap total bitrate used.
|
|
||||||
struct BitrateConfig {
|
|
||||||
int min_bitrate_bps = 0;
|
|
||||||
int start_bitrate_bps = kDefaultStartBitrateBps;
|
|
||||||
int max_bitrate_bps = -1;
|
|
||||||
} bitrate_config;
|
|
||||||
|
|
||||||
// AudioState which is possibly shared between multiple calls.
|
|
||||||
// TODO(solenberg): Change this to a shared_ptr once we can use C++11.
|
|
||||||
rtc::scoped_refptr<AudioState> audio_state;
|
|
||||||
|
|
||||||
// Audio Processing Module to be used in this call.
|
|
||||||
// TODO(solenberg): Change this to a shared_ptr once we can use C++11.
|
|
||||||
AudioProcessing* audio_processing = nullptr;
|
|
||||||
|
|
||||||
// RtcEventLog to use for this call. Required.
|
|
||||||
// Use webrtc::RtcEventLog::CreateNull() for a null implementation.
|
|
||||||
RtcEventLog* event_log = nullptr;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct Stats {
|
|
||||||
std::string ToString(int64_t time_ms) const;
|
|
||||||
|
|
||||||
int send_bandwidth_bps = 0; // Estimated available send bandwidth.
|
|
||||||
int max_padding_bitrate_bps = 0; // Cumulative configured max padding.
|
|
||||||
int recv_bandwidth_bps = 0; // Estimated available receive bandwidth.
|
|
||||||
int64_t pacer_delay_ms = 0;
|
|
||||||
int64_t rtt_ms = -1;
|
|
||||||
};
|
|
||||||
|
|
||||||
static Call* Create(const Call::Config& config);
|
|
||||||
|
|
||||||
virtual AudioSendStream* CreateAudioSendStream(
|
|
||||||
const AudioSendStream::Config& config) = 0;
|
|
||||||
virtual void DestroyAudioSendStream(AudioSendStream* send_stream) = 0;
|
|
||||||
|
|
||||||
virtual AudioReceiveStream* CreateAudioReceiveStream(
|
|
||||||
const AudioReceiveStream::Config& config) = 0;
|
|
||||||
virtual void DestroyAudioReceiveStream(
|
|
||||||
AudioReceiveStream* receive_stream) = 0;
|
|
||||||
|
|
||||||
virtual VideoSendStream* CreateVideoSendStream(
|
|
||||||
VideoSendStream::Config config,
|
|
||||||
VideoEncoderConfig encoder_config) = 0;
|
|
||||||
virtual void DestroyVideoSendStream(VideoSendStream* send_stream) = 0;
|
|
||||||
|
|
||||||
virtual VideoReceiveStream* CreateVideoReceiveStream(
|
|
||||||
VideoReceiveStream::Config configuration) = 0;
|
|
||||||
virtual void DestroyVideoReceiveStream(
|
|
||||||
VideoReceiveStream* receive_stream) = 0;
|
|
||||||
|
|
||||||
virtual FlexfecReceiveStream* CreateFlexfecReceiveStream(
|
|
||||||
FlexfecReceiveStream::Config configuration) = 0;
|
|
||||||
virtual void DestroyFlexfecReceiveStream(
|
|
||||||
FlexfecReceiveStream* receive_stream) = 0;
|
|
||||||
|
|
||||||
// All received RTP and RTCP packets for the call should be inserted to this
|
|
||||||
// PacketReceiver. The PacketReceiver pointer is valid as long as the
|
|
||||||
// Call instance exists.
|
|
||||||
virtual PacketReceiver* Receiver() = 0;
|
|
||||||
|
|
||||||
// Returns the call statistics, such as estimated send and receive bandwidth,
|
|
||||||
// pacing delay, etc.
|
|
||||||
virtual Stats GetStats() const = 0;
|
|
||||||
|
|
||||||
// TODO(pbos): Like BitrateConfig above this is currently per-stream instead
|
|
||||||
// of maximum for entire Call. This should be fixed along with the above.
|
|
||||||
// Specifying a start bitrate (>0) will currently reset the current bitrate
|
|
||||||
// estimate. This is due to how the 'x-google-start-bitrate' flag is currently
|
|
||||||
// implemented.
|
|
||||||
virtual void SetBitrateConfig(
|
|
||||||
const Config::BitrateConfig& bitrate_config) = 0;
|
|
||||||
|
|
||||||
// TODO(skvlad): When the unbundled case with multiple streams for the same
|
|
||||||
// media type going over different networks is supported, track the state
|
|
||||||
// for each stream separately. Right now it's global per media type.
|
|
||||||
virtual void SignalChannelNetworkState(MediaType media,
|
|
||||||
NetworkState state) = 0;
|
|
||||||
|
|
||||||
virtual void OnTransportOverheadChanged(
|
|
||||||
MediaType media,
|
|
||||||
int transport_overhead_per_packet) = 0;
|
|
||||||
|
|
||||||
virtual void OnNetworkRouteChanged(
|
|
||||||
const std::string& transport_name,
|
|
||||||
const rtc::NetworkRoute& network_route) = 0;
|
|
||||||
|
|
||||||
virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0;
|
|
||||||
|
|
||||||
virtual ~Call() {}
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace webrtc
|
|
||||||
|
|
||||||
#endif // WEBRTC_CALL_H_
|
|
||||||
|
|||||||
@ -8,6 +8,16 @@
|
|||||||
|
|
||||||
import("../build/webrtc.gni")
|
import("../build/webrtc.gni")
|
||||||
|
|
||||||
|
rtc_source_set("call_interfaces") {
|
||||||
|
sources = [
|
||||||
|
"audio_receive_stream.h",
|
||||||
|
"audio_send_stream.cc",
|
||||||
|
"audio_send_stream.h",
|
||||||
|
"audio_state.h",
|
||||||
|
"call.h",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
rtc_static_library("call") {
|
rtc_static_library("call") {
|
||||||
sources = [
|
sources = [
|
||||||
"bitrate_allocator.cc",
|
"bitrate_allocator.cc",
|
||||||
@ -22,10 +32,12 @@ rtc_static_library("call") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public_deps = [
|
public_deps = [
|
||||||
|
":call_interfaces",
|
||||||
"../api:call_api",
|
"../api:call_api",
|
||||||
]
|
]
|
||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
|
":call_interfaces",
|
||||||
"..:webrtc_common",
|
"..:webrtc_common",
|
||||||
"../api:transport_api",
|
"../api:transport_api",
|
||||||
"../audio",
|
"../audio",
|
||||||
|
|||||||
@ -8,8 +8,8 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_
|
#ifndef WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_
|
||||||
#define WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_
|
#define WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@ -139,4 +139,4 @@ class AudioReceiveStream {
|
|||||||
};
|
};
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
|
||||||
#endif // WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_
|
#endif // WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_
|
||||||
@ -8,7 +8,7 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_send_stream.h"
|
#include "webrtc/call/audio_send_stream.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -8,8 +8,8 @@
|
|||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_
|
#ifndef WEBRTC_CALL_AUDIO_SEND_STREAM_H_
|
||||||
#define WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_
|
#define WEBRTC_CALL_AUDIO_SEND_STREAM_H_
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -142,4 +142,4 @@ class AudioSendStream {
|
|||||||
};
|
};
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
|
||||||
#endif // WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_
|
#endif // WEBRTC_CALL_AUDIO_SEND_STREAM_H_
|
||||||
@ -7,8 +7,8 @@
|
|||||||
* in the file PATENTS. All contributing project authors may
|
* in the file PATENTS. All contributing project authors may
|
||||||
* be found in the AUTHORS file in the root of the source tree.
|
* be found in the AUTHORS file in the root of the source tree.
|
||||||
*/
|
*/
|
||||||
#ifndef WEBRTC_API_CALL_AUDIO_STATE_H_
|
#ifndef WEBRTC_CALL_AUDIO_STATE_H_
|
||||||
#define WEBRTC_API_CALL_AUDIO_STATE_H_
|
#define WEBRTC_CALL_AUDIO_STATE_H_
|
||||||
|
|
||||||
#include "webrtc/api/audio/audio_mixer.h"
|
#include "webrtc/api/audio/audio_mixer.h"
|
||||||
#include "webrtc/base/refcount.h"
|
#include "webrtc/base/refcount.h"
|
||||||
@ -46,4 +46,4 @@ class AudioState : public rtc::RefCountInterface {
|
|||||||
};
|
};
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
|
||||||
#endif // WEBRTC_API_CALL_AUDIO_STATE_H_
|
#endif // WEBRTC_CALL_AUDIO_STATE_H_
|
||||||
@ -16,7 +16,7 @@
|
|||||||
#include "webrtc/base/event.h"
|
#include "webrtc/base/event.h"
|
||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/base/thread_annotations.h"
|
#include "webrtc/base/thread_annotations.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/system_wrappers/include/critical_section_wrapper.h"
|
#include "webrtc/system_wrappers/include/critical_section_wrapper.h"
|
||||||
#include "webrtc/system_wrappers/include/trace.h"
|
#include "webrtc/system_wrappers/include/trace.h"
|
||||||
#include "webrtc/test/call_test.h"
|
#include "webrtc/test/call_test.h"
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <set>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -27,8 +28,8 @@
|
|||||||
#include "webrtc/base/thread_annotations.h"
|
#include "webrtc/base/thread_annotations.h"
|
||||||
#include "webrtc/base/thread_checker.h"
|
#include "webrtc/base/thread_checker.h"
|
||||||
#include "webrtc/base/trace_event.h"
|
#include "webrtc/base/trace_event.h"
|
||||||
#include "webrtc/call.h"
|
|
||||||
#include "webrtc/call/bitrate_allocator.h"
|
#include "webrtc/call/bitrate_allocator.h"
|
||||||
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/call/flexfec_receive_stream.h"
|
#include "webrtc/call/flexfec_receive_stream.h"
|
||||||
#include "webrtc/config.h"
|
#include "webrtc/config.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
|
|||||||
165
webrtc/call/call.h
Normal file
165
webrtc/call/call.h
Normal file
@ -0,0 +1,165 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
#ifndef WEBRTC_CALL_CALL_H_
|
||||||
|
#define WEBRTC_CALL_CALL_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include "webrtc/api/call/flexfec_receive_stream.h"
|
||||||
|
#include "webrtc/base/networkroute.h"
|
||||||
|
#include "webrtc/base/platform_file.h"
|
||||||
|
#include "webrtc/base/socket.h"
|
||||||
|
#include "webrtc/call/audio_receive_stream.h"
|
||||||
|
#include "webrtc/call/audio_send_stream.h"
|
||||||
|
#include "webrtc/call/audio_state.h"
|
||||||
|
#include "webrtc/common_types.h"
|
||||||
|
#include "webrtc/video_receive_stream.h"
|
||||||
|
#include "webrtc/video_send_stream.h"
|
||||||
|
|
||||||
|
namespace webrtc {
|
||||||
|
|
||||||
|
class AudioProcessing;
|
||||||
|
class RtcEventLog;
|
||||||
|
|
||||||
|
const char* Version();
|
||||||
|
|
||||||
|
enum class MediaType {
|
||||||
|
ANY,
|
||||||
|
AUDIO,
|
||||||
|
VIDEO,
|
||||||
|
DATA
|
||||||
|
};
|
||||||
|
|
||||||
|
class PacketReceiver {
|
||||||
|
public:
|
||||||
|
enum DeliveryStatus {
|
||||||
|
DELIVERY_OK,
|
||||||
|
DELIVERY_UNKNOWN_SSRC,
|
||||||
|
DELIVERY_PACKET_ERROR,
|
||||||
|
};
|
||||||
|
|
||||||
|
virtual DeliveryStatus DeliverPacket(MediaType media_type,
|
||||||
|
const uint8_t* packet,
|
||||||
|
size_t length,
|
||||||
|
const PacketTime& packet_time) = 0;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual ~PacketReceiver() {}
|
||||||
|
};
|
||||||
|
|
||||||
|
// A Call instance can contain several send and/or receive streams. All streams
|
||||||
|
// are assumed to have the same remote endpoint and will share bitrate estimates
|
||||||
|
// etc.
|
||||||
|
class Call {
|
||||||
|
public:
|
||||||
|
struct Config {
|
||||||
|
explicit Config(RtcEventLog* event_log) : event_log(event_log) {
|
||||||
|
RTC_DCHECK(event_log);
|
||||||
|
}
|
||||||
|
|
||||||
|
static const int kDefaultStartBitrateBps;
|
||||||
|
|
||||||
|
// Bitrate config used until valid bitrate estimates are calculated. Also
|
||||||
|
// used to cap total bitrate used.
|
||||||
|
struct BitrateConfig {
|
||||||
|
int min_bitrate_bps = 0;
|
||||||
|
int start_bitrate_bps = kDefaultStartBitrateBps;
|
||||||
|
int max_bitrate_bps = -1;
|
||||||
|
} bitrate_config;
|
||||||
|
|
||||||
|
// AudioState which is possibly shared between multiple calls.
|
||||||
|
// TODO(solenberg): Change this to a shared_ptr once we can use C++11.
|
||||||
|
rtc::scoped_refptr<AudioState> audio_state;
|
||||||
|
|
||||||
|
// Audio Processing Module to be used in this call.
|
||||||
|
// TODO(solenberg): Change this to a shared_ptr once we can use C++11.
|
||||||
|
AudioProcessing* audio_processing = nullptr;
|
||||||
|
|
||||||
|
// RtcEventLog to use for this call. Required.
|
||||||
|
// Use webrtc::RtcEventLog::CreateNull() for a null implementation.
|
||||||
|
RtcEventLog* event_log = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct Stats {
|
||||||
|
std::string ToString(int64_t time_ms) const;
|
||||||
|
|
||||||
|
int send_bandwidth_bps = 0; // Estimated available send bandwidth.
|
||||||
|
int max_padding_bitrate_bps = 0; // Cumulative configured max padding.
|
||||||
|
int recv_bandwidth_bps = 0; // Estimated available receive bandwidth.
|
||||||
|
int64_t pacer_delay_ms = 0;
|
||||||
|
int64_t rtt_ms = -1;
|
||||||
|
};
|
||||||
|
|
||||||
|
static Call* Create(const Call::Config& config);
|
||||||
|
|
||||||
|
virtual AudioSendStream* CreateAudioSendStream(
|
||||||
|
const AudioSendStream::Config& config) = 0;
|
||||||
|
virtual void DestroyAudioSendStream(AudioSendStream* send_stream) = 0;
|
||||||
|
|
||||||
|
virtual AudioReceiveStream* CreateAudioReceiveStream(
|
||||||
|
const AudioReceiveStream::Config& config) = 0;
|
||||||
|
virtual void DestroyAudioReceiveStream(
|
||||||
|
AudioReceiveStream* receive_stream) = 0;
|
||||||
|
|
||||||
|
virtual VideoSendStream* CreateVideoSendStream(
|
||||||
|
VideoSendStream::Config config,
|
||||||
|
VideoEncoderConfig encoder_config) = 0;
|
||||||
|
virtual void DestroyVideoSendStream(VideoSendStream* send_stream) = 0;
|
||||||
|
|
||||||
|
virtual VideoReceiveStream* CreateVideoReceiveStream(
|
||||||
|
VideoReceiveStream::Config configuration) = 0;
|
||||||
|
virtual void DestroyVideoReceiveStream(
|
||||||
|
VideoReceiveStream* receive_stream) = 0;
|
||||||
|
|
||||||
|
virtual FlexfecReceiveStream* CreateFlexfecReceiveStream(
|
||||||
|
FlexfecReceiveStream::Config configuration) = 0;
|
||||||
|
virtual void DestroyFlexfecReceiveStream(
|
||||||
|
FlexfecReceiveStream* receive_stream) = 0;
|
||||||
|
|
||||||
|
// All received RTP and RTCP packets for the call should be inserted to this
|
||||||
|
// PacketReceiver. The PacketReceiver pointer is valid as long as the
|
||||||
|
// Call instance exists.
|
||||||
|
virtual PacketReceiver* Receiver() = 0;
|
||||||
|
|
||||||
|
// Returns the call statistics, such as estimated send and receive bandwidth,
|
||||||
|
// pacing delay, etc.
|
||||||
|
virtual Stats GetStats() const = 0;
|
||||||
|
|
||||||
|
// TODO(pbos): Like BitrateConfig above this is currently per-stream instead
|
||||||
|
// of maximum for entire Call. This should be fixed along with the above.
|
||||||
|
// Specifying a start bitrate (>0) will currently reset the current bitrate
|
||||||
|
// estimate. This is due to how the 'x-google-start-bitrate' flag is currently
|
||||||
|
// implemented.
|
||||||
|
virtual void SetBitrateConfig(
|
||||||
|
const Config::BitrateConfig& bitrate_config) = 0;
|
||||||
|
|
||||||
|
// TODO(skvlad): When the unbundled case with multiple streams for the same
|
||||||
|
// media type going over different networks is supported, track the state
|
||||||
|
// for each stream separately. Right now it's global per media type.
|
||||||
|
virtual void SignalChannelNetworkState(MediaType media,
|
||||||
|
NetworkState state) = 0;
|
||||||
|
|
||||||
|
virtual void OnTransportOverheadChanged(
|
||||||
|
MediaType media,
|
||||||
|
int transport_overhead_per_packet) = 0;
|
||||||
|
|
||||||
|
virtual void OnNetworkRouteChanged(
|
||||||
|
const std::string& transport_name,
|
||||||
|
const rtc::NetworkRoute& network_route) = 0;
|
||||||
|
|
||||||
|
virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0;
|
||||||
|
|
||||||
|
virtual ~Call() {}
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace webrtc
|
||||||
|
|
||||||
|
#endif // WEBRTC_CALL_CALL_H_
|
||||||
@ -16,7 +16,7 @@
|
|||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/base/constructormagic.h"
|
#include "webrtc/base/constructormagic.h"
|
||||||
#include "webrtc/base/thread_annotations.h"
|
#include "webrtc/base/thread_annotations.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/config.h"
|
#include "webrtc/config.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/modules/audio_coding/include/audio_coding_module.h"
|
#include "webrtc/modules/audio_coding/include/audio_coding_module.h"
|
||||||
|
|||||||
@ -11,11 +11,11 @@
|
|||||||
#include <list>
|
#include <list>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_state.h"
|
#include "webrtc/call/audio_state.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h"
|
|
||||||
#include "webrtc/modules/audio_coding/codecs/mock/mock_audio_decoder_factory.h"
|
#include "webrtc/modules/audio_coding/codecs/mock/mock_audio_decoder_factory.h"
|
||||||
|
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h"
|
||||||
#include "webrtc/test/gtest.h"
|
#include "webrtc/test/gtest.h"
|
||||||
#include "webrtc/test/mock_voice_engine.h"
|
#include "webrtc/test/mock_voice_engine.h"
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "webrtc/base/event.h"
|
#include "webrtc/base/event.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/test/call_test.h"
|
#include "webrtc/test/call_test.h"
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ rtc_static_library("rtc_event_log_impl") {
|
|||||||
deps = [
|
deps = [
|
||||||
":rtc_event_log_api",
|
":rtc_event_log_api",
|
||||||
"..:webrtc_common",
|
"..:webrtc_common",
|
||||||
"../api:call_api",
|
"../call:call_interfaces",
|
||||||
"../modules/rtp_rtcp",
|
"../modules/rtp_rtcp",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -66,6 +66,7 @@ if (rtc_include_tests) {
|
|||||||
deps = [
|
deps = [
|
||||||
":rtc_event_log_impl",
|
":rtc_event_log_impl",
|
||||||
":rtc_event_log_parser",
|
":rtc_event_log_parser",
|
||||||
|
"../call",
|
||||||
"../modules/rtp_rtcp",
|
"../modules/rtp_rtcp",
|
||||||
"../system_wrappers:metrics_default",
|
"../system_wrappers:metrics_default",
|
||||||
"//testing/gmock",
|
"//testing/gmock",
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
include_rules = [
|
include_rules = [
|
||||||
"+webrtc/base",
|
"+webrtc/base",
|
||||||
|
"+webrtc/call",
|
||||||
"+webrtc/modules/rtp_rtcp",
|
"+webrtc/modules/rtp_rtcp",
|
||||||
"+webrtc/system_wrappers",
|
"+webrtc/system_wrappers",
|
||||||
]
|
]
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
#include "webrtc/base/event.h"
|
#include "webrtc/base/event.h"
|
||||||
#include "webrtc/base/swap_queue.h"
|
#include "webrtc/base/swap_queue.h"
|
||||||
#include "webrtc/base/thread_checker.h"
|
#include "webrtc/base/thread_checker.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/source/byte_io.h"
|
#include "webrtc/modules/rtp_rtcp/source/byte_io.h"
|
||||||
|
|||||||
@ -14,9 +14,9 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_receive_stream.h"
|
|
||||||
#include "webrtc/api/call/audio_send_stream.h"
|
|
||||||
#include "webrtc/base/platform_file.h"
|
#include "webrtc/base/platform_file.h"
|
||||||
|
#include "webrtc/call/audio_receive_stream.h"
|
||||||
|
#include "webrtc/call/audio_send_stream.h"
|
||||||
#include "webrtc/video_receive_stream.h"
|
#include "webrtc/video_receive_stream.h"
|
||||||
#include "webrtc/video_send_stream.h"
|
#include "webrtc/video_send_stream.h"
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include "gflags/gflags.h"
|
#include "gflags/gflags.h"
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/source/byte_io.h"
|
#include "webrtc/modules/rtp_rtcp/source/byte_io.h"
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||||
#include "webrtc/system_wrappers/include/file_wrapper.h"
|
#include "webrtc/system_wrappers/include/file_wrapper.h"
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
#include "webrtc/base/buffer.h"
|
#include "webrtc/base/buffer.h"
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/base/random.h"
|
#include "webrtc/base/random.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h"
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
#ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
|
#ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
|
||||||
#define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
|
#define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_UNITTEST_HELPER_H_
|
||||||
|
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|||||||
@ -18,10 +18,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_state.h"
|
|
||||||
#include "webrtc/api/rtpparameters.h"
|
#include "webrtc/api/rtpparameters.h"
|
||||||
#include "webrtc/base/fileutils.h"
|
#include "webrtc/base/fileutils.h"
|
||||||
#include "webrtc/base/sigslotrepeater.h"
|
#include "webrtc/base/sigslotrepeater.h"
|
||||||
|
#include "webrtc/call/audio_state.h"
|
||||||
#include "webrtc/media/base/codec.h"
|
#include "webrtc/media/base/codec.h"
|
||||||
#include "webrtc/media/base/mediachannel.h"
|
#include "webrtc/media/base/mediachannel.h"
|
||||||
#include "webrtc/media/base/videocommon.h"
|
#include "webrtc/media/base/videocommon.h"
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
#include "webrtc/base/bytebuffer.h"
|
#include "webrtc/base/bytebuffer.h"
|
||||||
#include "webrtc/base/gunit.h"
|
#include "webrtc/base/gunit.h"
|
||||||
#include "webrtc/base/timeutils.h"
|
#include "webrtc/base/timeutils.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/media/base/fakenetworkinterface.h"
|
#include "webrtc/media/base/fakenetworkinterface.h"
|
||||||
#include "webrtc/media/base/fakevideocapturer.h"
|
#include "webrtc/media/base/fakevideocapturer.h"
|
||||||
|
|||||||
@ -25,10 +25,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_receive_stream.h"
|
|
||||||
#include "webrtc/api/call/audio_send_stream.h"
|
|
||||||
#include "webrtc/base/buffer.h"
|
#include "webrtc/base/buffer.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/audio_receive_stream.h"
|
||||||
|
#include "webrtc/call/audio_send_stream.h"
|
||||||
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/video_frame.h"
|
#include "webrtc/video_frame.h"
|
||||||
#include "webrtc/video_receive_stream.h"
|
#include "webrtc/video_receive_stream.h"
|
||||||
#include "webrtc/video_send_stream.h"
|
#include "webrtc/video_send_stream.h"
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/config.h"
|
#include "webrtc/config.h"
|
||||||
#include "webrtc/media/base/mediaengine.h"
|
#include "webrtc/media/base/mediaengine.h"
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
#include "webrtc/base/stringutils.h"
|
#include "webrtc/base/stringutils.h"
|
||||||
#include "webrtc/base/timeutils.h"
|
#include "webrtc/base/timeutils.h"
|
||||||
#include "webrtc/base/trace_event.h"
|
#include "webrtc/base/trace_event.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/common_video/h264/profile_level_id.h"
|
#include "webrtc/common_video/h264/profile_level_id.h"
|
||||||
#include "webrtc/media/engine/constants.h"
|
#include "webrtc/media/engine/constants.h"
|
||||||
#include "webrtc/media/engine/internalencoderfactory.h"
|
#include "webrtc/media/engine/internalencoderfactory.h"
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
#include "webrtc/base/thread_checker.h"
|
#include "webrtc/base/thread_checker.h"
|
||||||
#include "webrtc/media/base/videosinkinterface.h"
|
#include "webrtc/media/base/videosinkinterface.h"
|
||||||
#include "webrtc/media/base/videosourceinterface.h"
|
#include "webrtc/media/base/videosourceinterface.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/media/base/mediaengine.h"
|
#include "webrtc/media/base/mediaengine.h"
|
||||||
#include "webrtc/media/engine/webrtcvideodecoderfactory.h"
|
#include "webrtc/media/engine/webrtcvideodecoderfactory.h"
|
||||||
#include "webrtc/media/engine/webrtcvideoencoderfactory.h"
|
#include "webrtc/media/engine/webrtcvideoencoderfactory.h"
|
||||||
|
|||||||
@ -16,14 +16,14 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_state.h"
|
|
||||||
#include "webrtc/base/buffer.h"
|
#include "webrtc/base/buffer.h"
|
||||||
#include "webrtc/base/constructormagic.h"
|
#include "webrtc/base/constructormagic.h"
|
||||||
#include "webrtc/base/networkroute.h"
|
#include "webrtc/base/networkroute.h"
|
||||||
#include "webrtc/base/scoped_ref_ptr.h"
|
#include "webrtc/base/scoped_ref_ptr.h"
|
||||||
#include "webrtc/base/stream.h"
|
#include "webrtc/base/stream.h"
|
||||||
#include "webrtc/base/thread_checker.h"
|
#include "webrtc/base/thread_checker.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/audio_state.h"
|
||||||
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/config.h"
|
#include "webrtc/config.h"
|
||||||
#include "webrtc/media/base/rtputils.h"
|
#include "webrtc/media/base/rtputils.h"
|
||||||
#include "webrtc/media/engine/webrtccommon.h"
|
#include "webrtc/media/engine/webrtccommon.h"
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
#include "webrtc/base/arraysize.h"
|
#include "webrtc/base/arraysize.h"
|
||||||
#include "webrtc/base/byteorder.h"
|
#include "webrtc/base/byteorder.h"
|
||||||
#include "webrtc/base/gunit.h"
|
#include "webrtc/base/gunit.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/p2p/base/faketransportcontroller.h"
|
#include "webrtc/p2p/base/faketransportcontroller.h"
|
||||||
#include "webrtc/test/field_trial.h"
|
#include "webrtc/test/field_trial.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/modules/audio_coding/neteq/tools/packet.h"
|
#include "webrtc/modules/audio_coding/neteq/tools/packet.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include "webrtc/base/basictypes.h"
|
#include "webrtc/base/basictypes.h"
|
||||||
#include "webrtc/base/sequenced_task_checker.h"
|
#include "webrtc/base/sequenced_task_checker.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
|
#include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/ulpfec_receiver.h"
|
#include "webrtc/modules/rtp_rtcp/include/ulpfec_receiver.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
|
#include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
#include "webrtc/base/constructormagic.h"
|
#include "webrtc/base/constructormagic.h"
|
||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/base/trace_event.h"
|
#include "webrtc/base/trace_event.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/common_types.h"
|
#include "webrtc/common_types.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/app.h"
|
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/app.h"
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
#include "webrtc/base/rate_limiter.h"
|
#include "webrtc/base/rate_limiter.h"
|
||||||
#include "webrtc/base/trace_event.h"
|
#include "webrtc/base/trace_event.h"
|
||||||
#include "webrtc/base/timeutils.h"
|
#include "webrtc/base/timeutils.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
|
#include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h"
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/test/encoder_settings.h"
|
#include "webrtc/test/encoder_settings.h"
|
||||||
#include "webrtc/test/fake_audio_device.h"
|
#include "webrtc/test/fake_audio_device.h"
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "webrtc/test/direct_transport.h"
|
#include "webrtc/test/direct_transport.h"
|
||||||
|
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/system_wrappers/include/clock.h"
|
#include "webrtc/system_wrappers/include/clock.h"
|
||||||
#include "webrtc/test/gtest.h"
|
#include "webrtc/test/gtest.h"
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/system_wrappers/include/clock.h"
|
#include "webrtc/system_wrappers/include/clock.h"
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/system_wrappers/include/clock.h"
|
#include "webrtc/system_wrappers/include/clock.h"
|
||||||
#include "webrtc/test/fake_network_pipe.h"
|
#include "webrtc/test/fake_network_pipe.h"
|
||||||
#include "webrtc/test/gmock.h"
|
#include "webrtc/test/gmock.h"
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
#ifndef WEBRTC_TEST_LAYER_FILTERING_TRANSPORT_H_
|
#ifndef WEBRTC_TEST_LAYER_FILTERING_TRANSPORT_H_
|
||||||
#define WEBRTC_TEST_LAYER_FILTERING_TRANSPORT_H_
|
#define WEBRTC_TEST_LAYER_FILTERING_TRANSPORT_H_
|
||||||
|
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/test/direct_transport.h"
|
#include "webrtc/test/direct_transport.h"
|
||||||
#include "webrtc/test/fake_network_pipe.h"
|
#include "webrtc/test/fake_network_pipe.h"
|
||||||
|
|
||||||
|
|||||||
@ -200,6 +200,7 @@ if (rtc_enable_protobuf) {
|
|||||||
}
|
}
|
||||||
defines = [ "ENABLE_RTC_EVENT_LOG" ]
|
defines = [ "ENABLE_RTC_EVENT_LOG" ]
|
||||||
deps = [
|
deps = [
|
||||||
|
"../call:call_interfaces",
|
||||||
"../logging:rtc_event_log_impl",
|
"../logging:rtc_event_log_impl",
|
||||||
"../logging:rtc_event_log_parser",
|
"../logging:rtc_event_log_parser",
|
||||||
"../modules/congestion_controller",
|
"../modules/congestion_controller",
|
||||||
|
|||||||
@ -17,21 +17,21 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "webrtc/api/call/audio_receive_stream.h"
|
|
||||||
#include "webrtc/api/call/audio_send_stream.h"
|
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/base/rate_statistics.h"
|
#include "webrtc/base/rate_statistics.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/audio_receive_stream.h"
|
||||||
|
#include "webrtc/call/audio_send_stream.h"
|
||||||
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/common_types.h"
|
#include "webrtc/common_types.h"
|
||||||
#include "webrtc/modules/bitrate_controller/include/bitrate_controller.h"
|
#include "webrtc/modules/bitrate_controller/include/bitrate_controller.h"
|
||||||
#include "webrtc/modules/congestion_controller/include/congestion_controller.h"
|
#include "webrtc/modules/congestion_controller/include/congestion_controller.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h"
|
|
||||||
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
|
|
||||||
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h"
|
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h"
|
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h"
|
||||||
|
#include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h"
|
||||||
|
#include "webrtc/modules/rtp_rtcp/source/rtp_utility.h"
|
||||||
#include "webrtc/video_receive_stream.h"
|
#include "webrtc/video_receive_stream.h"
|
||||||
#include "webrtc/video_send_stream.h"
|
#include "webrtc/video_send_stream.h"
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
#include "webrtc/base/file.h"
|
#include "webrtc/base/file.h"
|
||||||
#include "webrtc/base/optional.h"
|
#include "webrtc/base/optional.h"
|
||||||
#include "webrtc/base/rate_limiter.h"
|
#include "webrtc/base/rate_limiter.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/common_video/include/frame_callback.h"
|
#include "webrtc/common_video/include/frame_callback.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/media/base/fakevideorenderer.h"
|
#include "webrtc/media/base/fakevideorenderer.h"
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "gflags/gflags.h"
|
#include "gflags/gflags.h"
|
||||||
#include "webrtc/base/checks.h"
|
#include "webrtc/base/checks.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
|
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
|
||||||
#include "webrtc/system_wrappers/include/clock.h"
|
#include "webrtc/system_wrappers/include/clock.h"
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
#include "webrtc/base/optional.h"
|
#include "webrtc/base/optional.h"
|
||||||
#include "webrtc/base/platform_file.h"
|
#include "webrtc/base/platform_file.h"
|
||||||
#include "webrtc/base/timeutils.h"
|
#include "webrtc/base/timeutils.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
|
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
|
||||||
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
|
||||||
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h"
|
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h"
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
#include "webrtc/base/logging.h"
|
#include "webrtc/base/logging.h"
|
||||||
#include "webrtc/base/platform_thread.h"
|
#include "webrtc/base/platform_thread.h"
|
||||||
#include "webrtc/base/rate_limiter.h"
|
#include "webrtc/base/rate_limiter.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/common_video/include/frame_callback.h"
|
#include "webrtc/common_video/include/frame_callback.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
|
||||||
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
|
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
#include "webrtc/base/event.h"
|
#include "webrtc/base/event.h"
|
||||||
#include "webrtc/base/sequenced_task_checker.h"
|
#include "webrtc/base/sequenced_task_checker.h"
|
||||||
#include "webrtc/base/task_queue.h"
|
#include "webrtc/base/task_queue.h"
|
||||||
#include "webrtc/call.h"
|
#include "webrtc/call/call.h"
|
||||||
#include "webrtc/common_types.h"
|
#include "webrtc/common_types.h"
|
||||||
#include "webrtc/common_video/include/video_bitrate_allocator.h"
|
#include "webrtc/common_video/include/video_bitrate_allocator.h"
|
||||||
#include "webrtc/common_video/rotation.h"
|
#include "webrtc/common_video/rotation.h"
|
||||||
@ -28,10 +28,10 @@
|
|||||||
#include "webrtc/modules/video_coding/utility/quality_scaler.h"
|
#include "webrtc/modules/video_coding/utility/quality_scaler.h"
|
||||||
#include "webrtc/modules/video_coding/video_coding_impl.h"
|
#include "webrtc/modules/video_coding/video_coding_impl.h"
|
||||||
#include "webrtc/system_wrappers/include/atomic32.h"
|
#include "webrtc/system_wrappers/include/atomic32.h"
|
||||||
|
#include "webrtc/typedefs.h"
|
||||||
#include "webrtc/video/overuse_frame_detector.h"
|
#include "webrtc/video/overuse_frame_detector.h"
|
||||||
#include "webrtc/video_encoder.h"
|
#include "webrtc/video_encoder.h"
|
||||||
#include "webrtc/video_send_stream.h"
|
#include "webrtc/video_send_stream.h"
|
||||||
#include "webrtc/typedefs.h"
|
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user