Skip to content

Commit

Permalink
Allow for remux of LiveTV
Browse files Browse the repository at this point in the history
  • Loading branch information
jimdogx committed Sep 27, 2024
1 parent 065f81c commit f399d69
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion source/api/Items.bs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ function ItemPostPlaybackInfo(id as string, mediaSourceId = "" as string, audioT
"SubtitleStreamIndex": subtitleTrackIndex
}

if mediaSourceId <> "" then params.MediaSourceId = mediaSourceId
' Note: Jellyfin v10.9+ now remuxs LiveTV and does not allow DirectPlay anymore.
' Because of this, we need to tell the server "EnableDirectPlay = false" so that we receive the
' transcoding URL (which is just a remux and not a transcode; unless it is)
' The web handles this by disabling EnableDirectPlay on a Retry, but we don't currently Retry a Live
' TV stream, thus we just turn it off on the first try here.
if mediaSourceId <> ""
params.MediaSourceId = mediaSourceId
else
' No mediaSourceId? Must be LiveTV...
params.EnableDirectPlay = false
end if

if audioTrackIndex > -1 then params.AudioStreamIndex = audioTrackIndex

Expand Down

0 comments on commit f399d69

Please sign in to comment.