#include "components/mirroring/service/rtp_stream.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/trace_event/trace_event.h"
#include "base/values.h"
#include "media/base/video_frame.h"
#include "media/cast/cast_config.h"
#include "media/cast/sender/audio_sender.h"
#include "media/cast/sender/video_sender.h"
FrameSenderConfig;
RtpPayloadType;
namespace mirroring {
VideoRtpStream::VideoRtpStream(
std::unique_ptr<media::cast::VideoSender> video_sender,
base::WeakPtr<RtpStreamClient> client,
base::TimeDelta refresh_interval)
: … { … }
VideoRtpStream::~VideoRtpStream() { … }
void VideoRtpStream::InsertVideoFrame(
scoped_refptr<media::VideoFrame> video_frame) { … }
void VideoRtpStream::SetTargetPlayoutDelay(base::TimeDelta playout_delay) { … }
base::TimeDelta VideoRtpStream::GetTargetPlayoutDelay() const { … }
void VideoRtpStream::OnRefreshTimerFired() { … }
AudioRtpStream::AudioRtpStream(
std::unique_ptr<media::cast::AudioSender> audio_sender,
base::WeakPtr<RtpStreamClient> client)
: … { … }
AudioRtpStream::~AudioRtpStream() { … }
void AudioRtpStream::InsertAudio(std::unique_ptr<media::AudioBus> audio_bus,
base::TimeTicks capture_time) { … }
void AudioRtpStream::SetTargetPlayoutDelay(base::TimeDelta playout_delay) { … }
base::TimeDelta AudioRtpStream::GetTargetPlayoutDelay() const { … }
int AudioRtpStream::GetEncoderBitrate() const { … }
}