Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Set headers for http streams #31

@Quackdoc

Description

@Quackdoc

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

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions