mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-06 07:28:58 +00:00
sink: Force data channel priority to high
Low latency is very important for user interaction
This commit is contained in:
parent
9285798210
commit
03430a9571
1 changed files with 8 additions and 1 deletions
|
@ -1224,9 +1224,16 @@ impl InputStream {
|
||||||
|
|
||||||
impl NavigationEventHandler {
|
impl NavigationEventHandler {
|
||||||
pub fn new(element: &super::WebRTCSink, webrtcbin: &gst::Element) -> Self {
|
pub fn new(element: &super::WebRTCSink, webrtcbin: &gst::Element) -> Self {
|
||||||
|
gst_info!(CAT, "Creating navigation data channel");
|
||||||
let channel = webrtcbin.emit_by_name::<WebRTCDataChannel>(
|
let channel = webrtcbin.emit_by_name::<WebRTCDataChannel>(
|
||||||
"create-data-channel",
|
"create-data-channel",
|
||||||
&[&"input", &None::<gst::Structure>],
|
&[
|
||||||
|
&"input",
|
||||||
|
&gst::Structure::new(
|
||||||
|
"config",
|
||||||
|
&[("priority", &gst_webrtc::WebRTCPriorityType::High)],
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
let weak_element = element.downgrade();
|
let weak_element = element.downgrade();
|
||||||
|
|
Loading…
Reference in a new issue