Browse Source

fix m3u mode override (#590)

pull/591/head
Jason Dove 4 years ago committed by GitHub
parent
commit
861c95e1bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      CHANGELOG.md
  2. 6
      ErsatzTV.Application/Channels/Queries/GetChannelPlaylistHandler.cs

8
CHANGELOG.md

@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Fix m3u `mode` query param to properly override streaming mode for all channels
- `segmenter` for `HLS Segmenter`
- `hls-direct` for `HLS Direct`
- `ts` for `MPEG-TS`
- `ts-legacy` for `MPEG-TS (Legacy)`
- omitting the `mode` parameter returns each channel as configured
## [0.3.8-alpha] - 2022-01-23
### Fixed
- Fix issue preventing some versions of ffmpeg (usually 4.4.x) from streaming MPEG-TS (Legacy) channels at all

6
ErsatzTV.Application/Channels/Queries/GetChannelPlaylistHandler.cs

@ -36,10 +36,14 @@ namespace ErsatzTV.Application.Channels.Queries @@ -36,10 +36,14 @@ namespace ErsatzTV.Application.Channels.Queries
channel.StreamingMode = StreamingMode.HttpLiveStreamingDirect;
result.Add(channel);
break;
case "ts":
case "ts-legacy":
channel.StreamingMode = StreamingMode.TransportStream;
result.Add(channel);
break;
case "ts":
channel.StreamingMode = StreamingMode.TransportStreamHybrid;
result.Add(channel);
break;
default:
result.Add(channel);
break;

Loading…
Cancel
Save