Open TV Channel in XBMC/Kodi

(Smhgit) #41


I have added the Kodi binding but I am not sure how I can use it … :frowning:

I see the kodi, I can send commands as mute and volume. Now I am trying to play TV. The thing is that the TV channels are coming from videos and not from the pvr (Videos -> Video add-ons -> add on …).

How can I select item from Videos? SHould I use the playuri and give it the path to the video?


(Christoph Weitkamp) #42


I’m afraid that is not possible right now.

It depends. If you don’t use PVR the binding cannot play a file from your Kodi database directly. It’s “stupid” and doesn’t know anything about it. You can use the playuri channel for your purpose but you have to know the exact path to the file or add-on you want to play.

E.g. playing a YouTube video is possible - requires YouTube add-on installed.


If it helps I can implement a new feature to play a favorite.

(Smhgit) #43


Thx for your reply!

I found out that the in the end that actually the add-on plays a stream and not a file. I was able to find out the stream path (http://…m3u8) so using that URL I was able to send playUri command to Kodi via OpenHab and it worked.

My issue is that it is very difficult (at least I don’t know easy way to do it) to extract the streaming url. I have 4 channels and until now I was able only to find 2. So maybe favorites can help here. If I can add the channel to favorite, give it s simple short name and just use this name for playing, it will be great.


(Christoph Weitkamp) #44

Sounds good. You’re welcome.

I will put the implementation of the feature to handle favorites with the Kodi binding onto my To-do list.

In the meantime you can try the following steps to find out the stream URLs. I don’t know how you control your Kodi, but there is a very good APP called Yatse: Kodi Remote. You can add your TV channels to your favorites and sync them with the APP. Inside the APP the full path to every favorite link is shown underneath its name. Most of the time these paths can be opened with the playuri channel.

(Smhgit) #45


Thx, will try today and update