aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-11-11 21:54:55 +0100
committerfiaxh <git@lightrise.org>2021-11-11 21:54:55 +0100
commite205743f0cb71e32eecf183d067a4f34a7a89d48 (patch)
tree516e6cd86ad0a628e66d0af8796d02e0f03badba /libdino
parent1b157a20ab728a010eb85292177bcb62cef6a839 (diff)
downloaddino-e205743f0cb71e32eecf183d067a4f34a7a89d48.tar.gz
dino-e205743f0cb71e32eecf183d067a4f34a7a89d48.zip
Display target bitrates in connection details UI
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/call_peer_state.vala12
1 files changed, 12 insertions, 0 deletions
diff --git a/libdino/src/service/call_peer_state.vala b/libdino/src/service/call_peer_state.vala
index ddd0d8dd..c7bcd201 100644
--- a/libdino/src/service/call_peer_state.vala
+++ b/libdino/src/service/call_peer_state.vala
@@ -260,6 +260,10 @@ public class Dino.PeerState : Object {
ret.audio_codec = audio_content_parameter.agreed_payload_type.name;
ret.audio_clockrate = audio_content_parameter.agreed_payload_type.clockrate;
}
+ if (audio_content_parameter.stream != null && audio_content_parameter.stream.remb_enabled) {
+ ret.audio_target_receive_bitrate = audio_content_parameter.stream.target_receive_bitrate;
+ ret.audio_target_send_bitrate = audio_content_parameter.stream.target_send_bitrate;
+ }
}
if (audio_content != null) {
@@ -278,6 +282,10 @@ public class Dino.PeerState : Object {
if (video_content_parameter.agreed_payload_type != null) {
ret.video_codec = video_content_parameter.agreed_payload_type.name;
}
+ if (video_content_parameter.stream != null && video_content_parameter.stream.remb_enabled) {
+ ret.video_target_receive_bitrate = video_content_parameter.stream.target_receive_bitrate;
+ ret.video_target_send_bitrate = video_content_parameter.stream.target_send_bitrate;
+ }
}
if (video_content != null) {
@@ -443,6 +451,8 @@ public class Dino.PeerInfo {
public ulong? audio_bytes_received { get; set; default=0; }
public string? audio_codec { get; set; }
public uint32 audio_clockrate { get; set; }
+ public uint audio_target_receive_bitrate { get; set; default=0; }
+ public uint audio_target_send_bitrate { get; set; default=0; }
public bool video_content_exists { get; set; }
public bool video_rtp_ready { get; set; }
@@ -450,4 +460,6 @@ public class Dino.PeerInfo {
public ulong? video_bytes_sent { get; set; default=0; }
public ulong? video_bytes_received { get; set; default=0; }
public string? video_codec { get; set; }
+ public uint video_target_receive_bitrate { get; set; default=0; }
+ public uint video_target_send_bitrate { get; set; default=0; }
} \ No newline at end of file