Minor code formatting (cvium)
This commit is contained in:
parent
0e1ae2def2
commit
65b269c151
|
@ -307,7 +307,7 @@ public class DynamicHlsHelper
|
||||||
AppendPlaylist(builder, state, variantUrl, newBitrate, subtitleGroup);
|
AppendPlaylist(builder, state, variantUrl, newBitrate, subtitleGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isLiveStream && (state.VideoRequest?.EnableTrickplay).GetValueOrDefault(false))
|
if (!isLiveStream && (state.VideoRequest?.EnableTrickplay ?? false))
|
||||||
{
|
{
|
||||||
var sourceId = Guid.Parse(state.Request.MediaSourceId);
|
var sourceId = Guid.Parse(state.Request.MediaSourceId);
|
||||||
var trickplayResolutions = await _trickplayManager.GetTrickplayResolutions(sourceId).ConfigureAwait(false);
|
var trickplayResolutions = await _trickplayManager.GetTrickplayResolutions(sourceId).ConfigureAwait(false);
|
||||||
|
@ -565,7 +565,7 @@ public class DynamicHlsHelper
|
||||||
state.Request.MediaSourceId,
|
state.Request.MediaSourceId,
|
||||||
user.GetToken());
|
user.GetToken());
|
||||||
|
|
||||||
var line = string.Format(
|
builder.AppendFormat(
|
||||||
CultureInfo.InvariantCulture,
|
CultureInfo.InvariantCulture,
|
||||||
playlistFormat,
|
playlistFormat,
|
||||||
trickplayInfo.Bandwidth.ToString(CultureInfo.InvariantCulture),
|
trickplayInfo.Bandwidth.ToString(CultureInfo.InvariantCulture),
|
||||||
|
@ -573,7 +573,7 @@ public class DynamicHlsHelper
|
||||||
trickplayInfo.Height.ToString(CultureInfo.InvariantCulture),
|
trickplayInfo.Height.ToString(CultureInfo.InvariantCulture),
|
||||||
url);
|
url);
|
||||||
|
|
||||||
builder.AppendLine(line);
|
builder.AppendLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user