BtbN / vlc-htsp-plugin

Plugin for VLC to access TVHeadend via HTSP.
GNU Lesser General Public License v2.1
58 stars 32 forks source link

cannot directly open URLs #33

Closed TRPB closed 8 years ago

TRPB commented 8 years ago

I'm using the format described in the readme, however I cannot select channels via command line. If I use playlist mode and create a playlist it works, however I'm making a frontend that launches VLC on the specific channel.

This works:

vlc http://media:media@media:9981/stream/channel/18fd35078f95ad0ea95124e48ca5497d

And shows the channel.

Using the VLC GUI and setting the port/username/password then view / playlist / tvheadened HTSP also works.

However, I can't get this working via command line:

This command:

vlc htsp://media:media@media:9982/18fd35078f95ad0ea95124e48ca5497d

Shows

[0000000000916228] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007fd014000ea8] htsp demux: HTSP plugin loading...
[00007fd014000ea8] htsp demux: Connected to HTSP Server HTS Tvheadend, version 4.0.9, protocol 20
[00007fd014000ea8] htsp demux: TVHeadend is running a more recent version of HTSP(v20) than we are(v19). Check if there is an update available!
[00007fd014000ea8] htsp demux: Starting authentication...
[00007fd014000ea8] htsp demux: Authenticating as 'media' with a password
[00007fd014000ea8] htsp demux: Sending authentication...
[00007fd014000ea8] htsp demux: Successfully authenticated!
[00007fd014000ea8] htsp demux error: HTSP Error: Channel does not exist
[00007fd014000ea8] htsp demux error: HTSP Error: Requested channel does not exist
[00007fd024000aa8] core input error: open of `htsp://media:media@media:9982/18fd35078f95ad0ea95124e48ca5497d' failed

and TVHeadend output is:

2016-07-29 12:25:10.632 [   INFO] htsp: 192.168.0.2: Welcomed client software: VLC media player (HTSPv19)
2016-07-29 12:25:10.638 [   INFO] htsp: 192.168.0.2 [ VLC media player ]: Identified as user media
2016-07-29 12:25:10.638 [   INFO] htsp: 192.168.0.2 [ media | VLC media player ]: Privileges raised
2016-07-29 12:25:10.648 [   INFO] htsp: 192.168.0.2 [ media | VLC media player ]: Disconnected

Are the channel IDs different for HTSP? If so where do I get them from?

TRPB commented 8 years ago

Never mind, I realise this is a different channel ID than the ones used by HTTP :)