Streaming only works with username * password *
Added by Jens Ahrens over 10 years ago
Hi everybody,
I set up tvheadend on a Rapspberry Pi with wheezy. I use a Cinergy T2 DVBT USB Stick. Everything is setup and most things are working - but one thing:
I can only get a stream, when a user without username(=*) and password(=*) exists. As I want to stream over the net I would prefer an access control, but as soon as I delete this \*/* user and only have users that have username/password I get no more stream. The VLC plugin in my firefox opens, but there is no picture.
When I restore the \*/* everything works fine - but without access control.
What am I doing wrong?
Thanks for any hints,
Jens
Replies (2)
RE: Streaming only works with username * password * - Added by Jens Ahrens over 10 years ago
Here is some more additional info from /var/log/daemon.log when I connect from the internet to my pi running tvheadend:
No User/PW */* exists - no picture:
---------------------------------------------
May 27 10:16:42 raspberrypi tvheadend\[3205\]: START: HTS Tvheadend version 3.4~wheezy started, running as PID:3205 UID:108 GID:44, settings located in '/home/hts/.hts/tvheadend'
May 27 10:16:57 raspberrypi tvheadend\[3205\]: HTTP: xxx.xxx.xxx.xxx: /stream/channelid/11 -- 401
A User/PW */* exists - picture with vlc in firefox:
---------------------------------------------
May 27 10:55:32 raspberrypi tvheadend\[3360\]: START: HTS Tvheadend version 3.4~wheezy started, running as PID:3360 UID:108 GID:44, settings located in '/home/hts/.hts/tvheadend'
May 27 10:55:44 raspberrypi tvheadend\[3360\]: subscription: "HTTP" subscribing on "hr-fernsehen", weight: 100, adapter: "TerraTec/qanu USB2.0 Highspeed DVB-T Receiver", network: "HR-RM", mux: "HR-RM: 618,000 kHz", provider: "HR", service: "hr-fernsehen", quality: 100
Cheers,
Jens
RE: Streaming only works with username * password * - Added by Mark Clarkstone over 10 years ago
Jens Ahrens wrote:
Hi everybody,
I set up tvheadend on a Rapspberry Pi with wheezy. I use a Cinergy T2 DVBT USB Stick. Everything is setup and most things are working - but one thing:
I can only get a stream, when a user without username and passord exists. As I want to stream over the net I would prefer an access control, but as soon as I delete this /* user and only have users that have username/password I get no more stream. The VLC plugin in my firefox opens, but there is no picture.
When I restore the */ everything works fine - but without access control.What am I doing wrong?
Thanks for any hints,
Jens
I've just tested this myself.
When the browser asks you to enter a username and password you can access the webui fine but you can't stream because the username/password are not being sent with the request made by the plugin.
However if you request the webui using the username and password in the url, e.g. http://user:pass@ip:9981 the urls generated by the webui follow the same scheme (http://user:pass@ip:9981/stream/channel/foo) this will allow you to stream although it's not ideal.