#include "components/cast_streaming/browser/control/remoting/renderer_rpc_call_translator.h"
#include "media/cast/openscreen/remoting_message_factories.h"
#include "third_party/openscreen/src/cast/streaming/remoting.pb.h"
namespace cast_streaming::remoting {
RendererRpcCallTranslator::RendererRpcCallTranslator(
RpcMessageProcessor processor,
media::mojom::Renderer* renderer,
FlushUntilCallback flush_until_cb)
: … { … }
RendererRpcCallTranslator::~RendererRpcCallTranslator() = default;
void RendererRpcCallTranslator::SendFallbackMessage() { … }
void RendererRpcCallTranslator::OnRpcInitialize() { … }
void RendererRpcCallTranslator::OnRpcFlush(uint32_t audio_count,
uint32_t video_count) { … }
void RendererRpcCallTranslator::OnRpcStartPlayingFrom(base::TimeDelta time) { … }
void RendererRpcCallTranslator::OnRpcSetPlaybackRate(double playback_rate) { … }
void RendererRpcCallTranslator::OnRpcSetVolume(double volume) { … }
void RendererRpcCallTranslator::OnTimeUpdate(base::TimeDelta media_time,
base::TimeDelta max_time,
base::TimeTicks capture_time) { … }
void RendererRpcCallTranslator::OnBufferingStateChange(
media::BufferingState state,
media::BufferingStateChangeReason reason) { … }
void RendererRpcCallTranslator::OnError(const media::PipelineStatus& status) { … }
void RendererRpcCallTranslator::OnEnded() { … }
void RendererRpcCallTranslator::OnAudioConfigChange(
const media::AudioDecoderConfig& config) { … }
void RendererRpcCallTranslator::OnVideoConfigChange(
const media::VideoDecoderConfig& config) { … }
void RendererRpcCallTranslator::OnVideoNaturalSizeChange(
const gfx::Size& size) { … }
void RendererRpcCallTranslator::OnVideoOpacityChange(bool opaque) { … }
void RendererRpcCallTranslator::OnStatisticsUpdate(
const media::PipelineStatistics& stats) { … }
void RendererRpcCallTranslator::OnWaiting(media::WaitingReason reason) { … }
void RendererRpcCallTranslator::OnInitializeCompleted(
openscreen::cast::RpcMessenger::Handle handle_at_time_of_sending,
bool success) { … }
void RendererRpcCallTranslator::OnFlushCompleted() { … }
}