project-management-only/home-tv-station#12: Simple IPTV Client stalls on HLS



Issue Information

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

Milestone: v0.2
Created: 04-Aug-24 09:17



Description

When subscribing to the channel using Kodi's Simple IPTV client and HLS, things play for about 10s and then freeze.

Logs show the manifest being fetched, but no further chunk requests.



Toggle State Changes

Activity


assigned to @btasker

There are two likely possibilities here

  • Playback has started too early in the playlist, so it's fallen off the end in the meantime
  • Playback has broken because the chunks are referred to using relative URLs

The second is most likely - Kodi's not a huge lover of relative links in general.

HLS can now be tuned with the following env vars

HTTP_BASEURL="./"
HLS_FRAGLENGTH="2"
HLS_PLAYLISTLENGTH="8"

(HTTP_BASEURL was already a thing, but should be set to the full URL).

verified

mentioned in commit github-mirror/Home-TV-Station@6bc8c9cb5739342b14c366b6cc0f7e57a5bb656e

Commit: github-mirror/Home-TV-Station@6bc8c9cb5739342b14c366b6cc0f7e57a5bb656e 
Author: B Tasker                            
                            
Date: 2024-08-04T10:19:17.000+01:00 

Message

feat: make HLS config tunable via env var (project-management-only/home-tv-station#12)

+10 -4 (14 lines changed)
verified

mentioned in commit github-mirror/Home-TV-Station@8378450aa7d2cb26ead4a1deac86124ecd3031ab

Commit: github-mirror/Home-TV-Station@8378450aa7d2cb26ead4a1deac86124ecd3031ab 
Author: B Tasker                            
                            
Date: 2024-08-04T10:36:01.000+01:00 

Message

fix: prepend application name to baseurl (project-management-only/home-tv-station#12)

+2 -2 (4 lines changed)

The default basepath is now set to ../${RTMP_APPLICATION}.

That still won't work with Kodi, but if the env var is overridden to be http://mybox:8082 then playback works just fine.

Kodi seems to work a lot better, though I did just get a freeze (logs show kodi was still requesting chunks successfully, so it's a different issue to before)

I'm going to mark this as fixed, as the original issue was addressed. If I get another stall with logs showing it fetching segments I'll open a new issue.