1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef PC_CHANNEL_INTERFACE_H_
- #define PC_CHANNEL_INTERFACE_H_
- #include <string>
- #include <vector>
- #include "api/jsep.h"
- #include "api/media_types.h"
- #include "media/base/media_channel.h"
- #include "pc/rtp_transport_internal.h"
- namespace cricket {
- class MediaContentDescription;
- class ChannelInterface {
- public:
- virtual cricket::MediaType media_type() const = 0;
- virtual MediaChannel* media_channel() const = 0;
-
- virtual const std::string& transport_name() const = 0;
- virtual const std::string& content_name() const = 0;
- virtual bool enabled() const = 0;
-
- virtual bool Enable(bool enable) = 0;
-
- virtual sigslot::signal1<ChannelInterface*>& SignalFirstPacketReceived() = 0;
-
- virtual bool SetLocalContent(const MediaContentDescription* content,
- webrtc::SdpType type,
- std::string* error_desc) = 0;
- virtual bool SetRemoteContent(const MediaContentDescription* content,
- webrtc::SdpType type,
- std::string* error_desc) = 0;
- virtual bool SetPayloadTypeDemuxingEnabled(bool enabled) = 0;
-
- virtual const std::vector<StreamParams>& local_streams() const = 0;
- virtual const std::vector<StreamParams>& remote_streams() const = 0;
-
-
-
-
-
- virtual bool SetRtpTransport(webrtc::RtpTransportInternal* rtp_transport) = 0;
- protected:
- virtual ~ChannelInterface() = default;
- };
- }
- #endif
|