sink: Force data channel priority to high

Low latency is very important for user interaction
This commit is contained in:
Thibault Saunier 2022-03-25 13:31:33 +00:00 committed by Mathieu Duponchelle
parent 9285798210
commit 03430a9571

View file

@ -1224,9 +1224,16 @@ impl InputStream {
impl NavigationEventHandler {
pub fn new(element: &super::WebRTCSink, webrtcbin: &gst::Element) -> Self {
gst_info!(CAT, "Creating navigation data channel");
let channel = webrtcbin.emit_by_name::<WebRTCDataChannel>(
"create-data-channel",
&[&"input", &None::<gst::Structure>],
&[
&"input",
&gst::Structure::new(
"config",
&[("priority", &gst_webrtc::WebRTCPriorityType::High)],
),
],
);
let weak_element = element.downgrade();