#include "media/cast/openscreen/remoting_message_factories.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/buffering_state.h"
#include "media/base/pipeline_status.h"
#include "media/base/video_decoder_config.h"
#include "media/cast/openscreen/remoting_proto_enum_utils.h"
#include "media/cast/openscreen/remoting_proto_utils.h"
#include "third_party/openscreen/src/cast/streaming/remoting.pb.h"
namespace media::cast {
namespace {
std::unique_ptr<openscreen::cast::RpcMessage> CreateMessage(
openscreen::cast::RpcMessage_RpcProc type) { … }
}
std::unique_ptr<openscreen::cast::RpcMessage> CreateMessageForError() { … }
std::unique_ptr<openscreen::cast::RpcMessage> CreateMessageForMediaEnded() { … }
std::unique_ptr<openscreen::cast::RpcMessage> CreateMessageForStatisticsUpdate(
const media::PipelineStatistics& stats) { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForBufferingStateChange(media::BufferingState state) { … }
std::unique_ptr<openscreen::cast::RpcMessage> CreateMessageForAudioConfigChange(
const media::AudioDecoderConfig& config) { … }
std::unique_ptr<openscreen::cast::RpcMessage> CreateMessageForVideoConfigChange(
const media::VideoDecoderConfig& config) { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForVideoNaturalSizeChange(const gfx::Size& size) { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForVideoOpacityChange(bool opaque) { … }
std::unique_ptr<openscreen::cast::RpcMessage> CreateMessageForMediaTimeUpdate(
base::TimeDelta media_time) { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForInitializationComplete(bool has_succeeded) { … }
std::unique_ptr<openscreen::cast::RpcMessage> CreateMessageForFlushComplete() { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForAcquireRendererDone(
openscreen::cast::RpcMessenger::Handle receiver_renderer_handle) { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForDemuxerStreamInitialize(
openscreen::cast::RpcMessenger::Handle local_handle) { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForDemuxerStreamReadUntil(
openscreen::cast::RpcMessenger::Handle local_handle,
uint32_t buffers_requested) { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForDemuxerStreamEnableBitstreamConverter() { … }
std::unique_ptr<openscreen::cast::RpcMessage>
CreateMessageForDemuxerStreamError() { … }
}