streamd: preview quality picker, dashboard polish, C4 wrap keys
All checks were successful
release / build-and-upload (push) Successful in 6m18s
modules-release / build-and-upload (push) Successful in 5m18s

- Preview player can select FHD/HD/SD (or ABR master) from publish links
- Embed dashboard screenshots in README; Linux streamd+agent setup guide
- C4 Widevine wrap license mode + require --wvd; prefer Widevine PSSH
- Channel 4 and My5 modules; streamd auth, variants, schedules, HLS gate
This commit is contained in:
404errordeveloper 2026-10-09 20:57:43 +02:00
parent b3955bd81e
commit 066e018749
113 changed files with 19002 additions and 1541 deletions

View file

@ -82,6 +82,8 @@ func (r *RemoteApp) MPDRewriter() mpd.Rewriter {
func (r *RemoteApp) UseTransparentMITM() bool { return r.Desc.TransparentMITM }
func (r *RemoteApp) RequireWVD() bool { return r.Desc.RequireWVD }
func (r *RemoteApp) MitmHosts() []string {
out := make([]string, 0, len(r.Desc.MitmHosts))
for _, h := range r.Desc.MitmHosts {
@ -93,6 +95,28 @@ func (r *RemoteApp) MitmHosts() []string {
return out
}
func (r *RemoteApp) CaptureHintsFor(channel string) capture.Hints {
h := r.CaptureHints()
if len(r.Desc.ChannelMPDPrefer) == 0 {
return h
}
id := strings.ToLower(strings.TrimSpace(channel))
if prefs, ok := r.Desc.ChannelMPDPrefer[id]; ok && len(prefs) > 0 {
h.PreferURLContains = append([]string{}, prefs...)
return h
}
// Alias / label fallback: match prefer keys against known channel ids only.
for _, ch := range r.Desc.Channels {
if strings.EqualFold(ch.ID, id) || strings.EqualFold(ch.Label, id) {
if prefs, ok := r.Desc.ChannelMPDPrefer[ch.ID]; ok && len(prefs) > 0 {
h.PreferURLContains = append([]string{}, prefs...)
}
break
}
}
return h
}
func (r *RemoteApp) RewriterName() string {
if r.Desc.Rewriter == "" {
return "none"
@ -126,11 +150,13 @@ func (r *RemoteApp) ValuesPath() string {
// Ensure RemoteApp satisfies the interfaces capture / catalog use.
var (
_ app.App = (*RemoteApp)(nil)
_ app.TransparentMITM = (*RemoteApp)(nil)
_ app.MitmHostList = (*RemoteApp)(nil)
_ app.StreamDefaults = (*RemoteApp)(nil)
_ app.Catalog = (*RemoteApp)(nil)
_ app.App = (*RemoteApp)(nil)
_ app.TransparentMITM = (*RemoteApp)(nil)
_ app.RequireWVD = (*RemoteApp)(nil)
_ app.MitmHostList = (*RemoteApp)(nil)
_ app.ChannelCaptureHints = (*RemoteApp)(nil)
_ app.StreamDefaults = (*RemoteApp)(nil)
_ app.Catalog = (*RemoteApp)(nil)
)
func (r *RemoteApp) VideoSelect() string { return "" }