project-management-only/home-tv-station#8: Figure Out Streaming to Kodi



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.1
Created: 03-Aug-24 17:04



Description

I need to figure out how to subscribe to the channel from Kodi



Toggle State Changes

Activity


assigned to @btasker

Taking a quick poke about on the net, it looks like the most common approach is to add IPTV Simple Client

However, it requires a .m3u playlist describing a list of channels.

Although you'd probably normally maintain that manually, it'd be nice to have the container at least offer one up

Ahh, this is more complex than expected - in fact, I've been caught out by this before.

We can't just generate a M3U which looks like this:

#EXTM3U
#EXTINF:-1,one
one.m3u8

Because Kodi needs an absolute path.

So, we need to prefix it. I've added env var HTTP_BASEURL to make it possible to describe what that should be.

That being said, Kodi's currently choking on the HLS stream (it plays for a bit then sticks - looks like it fell too far behind on the manifest), so I'm going to try switching over to using RTMP quickly

That's working better. Committed and pushed.

I think though, rather than relying on the autogenerated one, best practice will probably be to mount a manually created one into the container.

For example:

apiVersion: v1
kind: ConfigMap
metadata:
  name: tv-station-config
  namespace: tv-station  
data:
  allowlist.txt:
  blocklist.txt: |
    Prison_School
  channels.m3u: |
    #EXTM3U
    #EXTINF:-1,benstv/one
    rtmp://192.168.3.22:1935/benstv/one

Doing it this way will mean that, if I decide to push multiple channels in, I can trivially update/manage the list.

So, basically, the answer here is:

verified

mentioned in commit github-mirror/Home-TV-Station@4cb6f010fc1bfb5b1a3f302d6b6a34e5dba57b49

Commit: github-mirror/Home-TV-Station@4cb6f010fc1bfb5b1a3f302d6b6a34e5dba57b49 
Author: B Tasker                            
                            
Date: 2024-08-03T18:09:43.000+01:00 

Message

feat: generate a .m3u channel list for feeding into IPTV Simple Client (project-management-only/home-tv-station#8)

Note: This file will only ever contain a single channel

+8 -0 (8 lines changed)
verified

mentioned in commit github-mirror/Home-TV-Station@4c8029aed99597d9b6573b6a27920b5395d1f700

Commit: github-mirror/Home-TV-Station@4c8029aed99597d9b6573b6a27920b5395d1f700 
Author: B Tasker                            
                            
Date: 2024-08-03T18:28:18.000+01:00 

Message

fix: switch to RTMP (and use absolute domain) for channel playlist (project-management-only/home-tv-station#8)

+4 -2 (6 lines changed)