mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[feat] bandwidth probing supported
This commit is contained in:
@@ -35,7 +35,8 @@ typedef void (*OnReceiveData)(const char *, size_t, const char *, const size_t,
|
||||
void *);
|
||||
|
||||
class IceTransportController
|
||||
: public std::enable_shared_from_this<IceTransportController> {
|
||||
: public std::enable_shared_from_this<IceTransportController>,
|
||||
public ThreadBase {
|
||||
public:
|
||||
IceTransportController(std::shared_ptr<SystemClock> clock);
|
||||
~IceTransportController();
|
||||
@@ -74,6 +75,7 @@ class IceTransportController
|
||||
int CreateAudioCodec();
|
||||
|
||||
private:
|
||||
void UpdateControllerWithTimeInterval();
|
||||
void OnSentRtpPacket(const webrtc::RtpPacketToSend &packet);
|
||||
void HandleTransportPacketsFeedback(
|
||||
const webrtc::TransportPacketsFeedback &feedback);
|
||||
@@ -81,6 +83,9 @@ class IceTransportController
|
||||
void UpdateControlState();
|
||||
void UpdateCongestedState();
|
||||
|
||||
private:
|
||||
bool Process() override;
|
||||
|
||||
private:
|
||||
std::unique_ptr<VideoChannelSend> video_channel_send_ = nullptr;
|
||||
std::unique_ptr<AudioChannelSend> audio_channel_send_ = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user