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

@@ -60,6 +60,11 @@ namespace MediaBrowser.Api.Playback
{
get
{
if (Request.SegmentLength.HasValue)
{
return Request.SegmentLength.Value;
}
if (string.Equals(OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase))
{
var userAgent = UserAgent ?? string.Empty;
@@ -86,6 +91,19 @@ namespace MediaBrowser.Api.Playback
}
}
public int MinSegments
{
get
{
if (Request.MinSegments.HasValue)
{
return Request.MinSegments.Value;
}
return SegmentLength >= 10 ? 2 : 3;
}
}
public bool IsSegmentedLiveStream
{
get