Hi all,
I am trying to write a HTML/JS-based app to play a channel from TVHeadend via the browser.
After much fiddling I have managed to use digest authentication and I can retrieve the channel list via this TVH api URI:
/api/channel/grid?limit=1000
This returns - among other things - the UUID of each channel.
Now in order to play a channel I wanted to assign the URL
http://192.168.0.4:9981/stream/channelid/UUID?profile=htsp as video source in HTML5 where UUID is the actual UUID.
However this will not play. Is this the correct way to accomplish what I am trying to do? I have tried different profile values and skipping the profile parameter altogether - without success.
When I check the TVH admin interface and I click the "play" link of any channel there, I get a link of the following syntax:
http://192.168.0.4:9981/stream/channel/UUID?ticket=SOME_ID
Now I am wondering if I can create the ticket value via the API and then build my link correctly? Is there a way to do this? I have searched the web for literally days but I cannot find an answer.
If not, then what else can I do to get a stream after having authenticated successfully via digest authentication?
Best regards
mf_2
Edit: Just saw the "how to ask a good question" topic, so here we go:
Version of TVHeadend? 4.3~9ed76c0
Running on what OS and version? Synology NAS on DSM Manager 6
Package that came with the OS or something you compiled yourself? Came with the Synology Package Manager
Adapter/tuner chipset or make/model? Triax TSS 400 MKII SAT>IP Converter