bruni68510 / tvheadendhtml5client

0 stars 0 forks source link

How to use? #1

Open zdzichu6969 opened 4 years ago

zdzichu6969 commented 4 years ago

Hello,

It is possible to upload documentation with information, how to use that ?

How to generate valid url to connect with TVHeadend ?

bruni68510 commented 4 years ago

Hello,

for now the path to make it work is quite complex.

Requirements are:

  1. TVHeadend with digest auth enabled 2.TVHeadend is supposed to work on standard port 9981 over http because it is hardcoded 3.THe communication between the browser and the NODE server requires secure channel either HTTPS or localhost for the JWE token to work. This JWE token carry the connection information between the browser and the node server to TVHeadend. Yes i known i would be better having it on the NODE server directly.

The connection between the NODE server and TVHeadend server is hardcoded in the https://github.com/bruni68510/tvheadendhtml5client/blob/master/public/javascripts/Main.js#L139.

The port 9981 is hardcoded from now at many places: https://github.com/bruni68510/tvheadendhtml5client/search?l=JavaScript&q=%22%3A9981%22

The code has no comment and no tests so mostly useless.

But if the instruction are clear you should see :

image

Click on arrow up and down to switch channel and click and Program Information (EPG) to open the video.

bruni68510 commented 4 years ago

The run it, you can use locally the bin/www script which is starting the node server on localhost port 3000.

The docker image created out of the dockerfile is available on docker hub: docker pull bruni68510/tvheadendhtml5client

But this image is theorically useless as is because of the hardcoded connection to TVHeadend.

zdzichu6969 commented 4 years ago

Thank you, Server address i s hardcoded here :) : https://github.com/bruni68510/tvheadendhtml5client/blob/77fe2003ced88671f9f88567acbf6d322726b175/public/dist/bundle.js#L1

When i edited it. It works.

image