32 virtual ::webrtc::MediaType media_type()
const = 0;
34 virtual ::webrtc::VideoChannel* AsVideoChannel() = 0;
36 virtual ::webrtc::VoiceChannel* AsVoiceChannel() = 0;
38 virtual ::webrtc::MediaSendChannelInterface* media_send_channel() = 0;
40 virtual ::webrtc::VideoMediaSendChannelInterface* video_media_send_channel() = 0;
42 virtual ::webrtc::VoiceMediaSendChannelInterface* voice_media_send_channel() = 0;
44 virtual ::webrtc::MediaReceiveChannelInterface* media_receive_channel() = 0;
46 virtual ::webrtc::VideoMediaReceiveChannelInterface* video_media_receive_channel() = 0;
48 virtual ::webrtc::VoiceMediaReceiveChannelInterface* voice_media_receive_channel() = 0;
50 virtual ::std::string_view transport_name()
const = 0;
52 virtual ::std::string
const& mid()
const = 0;
54 virtual void Enable(
bool enable) = 0;
56 virtual void SetFirstPacketReceivedCallback(::std::function<
void()> callback) = 0;
58 virtual void SetFirstPacketSentCallback(::std::function<
void()> callback) = 0;
60 virtual bool SetLocalContent(
62 ::webrtc::SdpType type,
63 ::std::string& error_desc
66 virtual bool SetRemoteContent(
68 ::webrtc::SdpType type,
69 ::std::string& error_desc
72 virtual bool SetPayloadTypeDemuxingEnabled(
bool enabled) = 0;
74 virtual ::std::vector<::webrtc::StreamParams>
const& local_streams()
const = 0;
76 virtual ::std::vector<::webrtc::StreamParams>
const& remote_streams()
const = 0;