update hls subtitles

This commit is contained in:
Luke Pulverenti
2016-07-13 15:16:51 -04:00
parent 2254546ea5
commit e44a24d9e5
5 changed files with 21 additions and 1 deletions

View File

@@ -1568,6 +1568,13 @@ namespace MediaBrowser.Api.Playback
{
request.TranscodingMaxAudioChannels = int.Parse(val, UsCulture);
}
else if (i == 28)
{
if (videoRequest != null)
{
videoRequest.EnableSubtitlesInManifest = string.Equals("true", val, StringComparison.OrdinalIgnoreCase);
}
}
}
}
@@ -2140,6 +2147,7 @@ namespace MediaBrowser.Api.Playback
{
state.VideoRequest.CopyTimestamps = transcodingProfile.CopyTimestamps;
state.VideoRequest.ForceLiveStream = transcodingProfile.ForceLiveStream;
state.VideoRequest.EnableSubtitlesInManifest = transcodingProfile.EnableSubtitlesInManifest;
}
}
}