hls fixes
This commit is contained in:
parent
f251fd5abf
commit
cafc8356b2
|
@ -290,7 +290,9 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
{
|
||||
using (var reader = new StreamReader(fileStream))
|
||||
{
|
||||
var text = await reader.ReadToEndAsync().ConfigureAwait(false);
|
||||
while (!reader.EndOfStream)
|
||||
{
|
||||
var text = await reader.ReadLineAsync().ConfigureAwait(false);
|
||||
|
||||
// If it appears in the playlist, it's done
|
||||
if (text.IndexOf(segmentFilename, StringComparison.OrdinalIgnoreCase) != -1)
|
||||
|
@ -299,6 +301,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if a different file is encoding, it's done
|
||||
//var currentTranscodingIndex = GetCurrentTranscodingIndex(playlistPath);
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace MediaBrowser.Api.Playback
|
|||
public string LiveTvStreamId { get; set; }
|
||||
|
||||
public int SegmentLength = 3;
|
||||
public bool EnableGenericHlsSegmenter;
|
||||
public bool EnableGenericHlsSegmenter = false;
|
||||
public int HlsListSize
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Reference in New Issue
Block a user