This repository was archived by the owner on Nov 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Set headers for http streams #31
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
The app works great, but some http streams will send you to an error 404 unless you set headers, I have a patch here that shows how it can be set fine.
diff --git a/receiver/src/pipeline.rs b/receiver/src/pipeline.rs
index 612781e..af1dfee 100644
--- a/receiver/src/pipeline.rs
+++ b/receiver/src/pipeline.rs
@@ -56,6 +56,9 @@ impl Pipeline {
if factory.name() == "rtspsrc" {
elem.set_property("latency", 0u32);
}
+ if factory.name() == "souphttpsrc" {
+ elem.set_property("user-agent", "Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0");
+ }
}
None
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request