|
|
|
@ -47,6 +47,23 @@ |
|
|
|
|
} |
|
|
|
|
<button class="btn btn-dark" role="button" disabled>@uptime.ToString("c")</button> |
|
|
|
|
} |
|
|
|
|
else if (StreamUtils.IsLive(user.PrivateAccessKey, stats)) { |
|
|
|
|
var uptime = TimeSpan.FromMilliseconds(StreamUtils.GetClientTime(user.PrivateAccessKey, stats)).StripMilliseconds(); |
|
|
|
|
|
|
|
|
|
if (user.AllowRestream && !string.IsNullOrWhiteSpace(user.RestreamTargets)) { |
|
|
|
|
var restreams = StreamUtils.CountLiveRestreams(user.PrivateAccessKey, stats); |
|
|
|
|
if (restreams > 0) { |
|
|
|
|
<button class="btn btn-dark" role="button" style="width:18ch" disabled>Restreaming (@restreams)</button> |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
<button class="btn btn-warning" role="button" style="width:18ch" disabled>Restreaming (@restreams)</button> |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
<button class="btn btn-warning" role="button" style="width:18ch" disabled>Live (private)</button> |
|
|
|
|
} |
|
|
|
|
<button class="btn btn-dark" role="button" disabled>@uptime.ToString("c")</button> |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
<button class="btn btn-danger" role="button" style="width:18ch" disabled>No data</button> |
|
|
|
|
} |
|
|
|
|