Replies: 2 comments 2 replies
-
Rather than modifying Streamlink, I'm thinking it could be easier to do it another way using existing functionality. If you were to pass the key as an HTTP header, then you could just start Streamlink via:
If the code changes you'd just need a simple wrapper script/GUI to take the code input from the user and pass it to Streamlink's command line when you run it. |
Beta Was this translation helpful? Give feedback.
2 replies
-
This works for me:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using streamlink to playback content from my nginx rtmp server over the local network i have 33 pcs connected to the network
my nginx rtmp server outputs a dash stream but authentication is handeled by a 3rd party code provided to each person i have a gui application in python that calls streamlink to play one of the dash streams from my nginx server i would like each person to pass there own code to the application and the application then passes the code back to streamlink to check before playback
i have edited - argparser.py and added a --sec-key option to this file i have also edited session.py and added the same --sec-key option in here i then went to ffmpegmux.py and edited this file
i added in the following
seckey = session.options.get("sec-key") or options.pop("seckey", None)
and then checked to see if seckey was set and passed it off to a simple get request to http://0.0.0.0/sec.php?key=4564654
this would return true or false via json if the key was active or not
i thought that was everyi could see todo with passing a custom argument from cli but when i run streamlink i get the error "unrecognised argument: --sec-key 4564654"
the reason iam using streamlink and piping the output is when playback is done in vlc or a browser player the dash playback seems to be choppy at best but using streamlink it plays perfect it also allows me to provide simple and clean interface for playback with no complicated options
have i missed something when trying to pass a custom argument to streamlink ?
Beta Was this translation helpful? Give feedback.
All reactions