add all subtitles to hls manifest

This commit is contained in:
Luke Pulverenti 2016-07-13 15:09:31 -04:00
parent 5bd44644cc
commit 2254546ea5
2 changed files with 3 additions and 1 deletions

View File

@ -525,7 +525,7 @@ namespace MediaBrowser.Api.Playback.Hls
var subtitleGroup = subtitleStreams.Count > 0 &&
request is GetMasterHlsVideoPlaylist &&
((GetMasterHlsVideoPlaylist)request).SubtitleMethod == SubtitleDeliveryMethod.Hls ?
(((GetMasterHlsVideoPlaylist)request).SubtitleMethod == SubtitleDeliveryMethod.Hls || ((GetMasterHlsVideoPlaylist)request).EnableSubtitlesInManifest) ?
"subs" :
null;

View File

@ -194,6 +194,8 @@ namespace MediaBrowser.Api.Playback
public bool ForceLiveStream { get; set; }
public bool EnableSubtitlesInManifest { get; set; }
public VideoStreamRequest()
{
EnableAutoStreamCopy = true;