embed recording button into video player

This commit is contained in:
Luke Pulverenti
2017-03-17 16:23:34 -04:00
parent db90483238
commit c9ee7633ca
7 changed files with 67 additions and 2 deletions

View File

@@ -110,8 +110,11 @@ namespace MediaBrowser.Api.Playback.Hls
throw;
}
var waitForSegments = state.SegmentLength >= 10 ? 2 : 3;
await WaitForMinimumSegmentCount(playlist, waitForSegments, cancellationTokenSource.Token).ConfigureAwait(false);
var minSegments = state.MinSegments;
if (minSegments > 0)
{
await WaitForMinimumSegmentCount(playlist, minSegments, cancellationTokenSource.Token).ConfigureAwait(false);
}
}
}
finally