mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix build
This commit is contained in:
parent
f0556c8ded
commit
e96d41d5ef
@ -301,8 +301,7 @@ namespace Emby.Server.Implementations.SyncPlay
|
|||||||
if (_group.IsPaused)
|
if (_group.IsPaused)
|
||||||
{
|
{
|
||||||
// Pick a suitable time that accounts for latency
|
// Pick a suitable time that accounts for latency
|
||||||
var delay = _group.GetHighestPing() * 2;
|
var delay = Math.Max(_group.GetHighestPing() * 2, GroupInfo.DefaultPing);
|
||||||
delay = delay < _group.DefaultPing ? _group.DefaultPing : delay;
|
|
||||||
|
|
||||||
// Unpause group and set starting point in future
|
// Unpause group and set starting point in future
|
||||||
// Clients will start playback at LastActivity (datetime) from PositionTicks (playback position)
|
// Clients will start playback at LastActivity (datetime) from PositionTicks (playback position)
|
||||||
@ -452,8 +451,7 @@ namespace Emby.Server.Implementations.SyncPlay
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Client, that was buffering, resumed playback but did not update others in time
|
// Client, that was buffering, resumed playback but did not update others in time
|
||||||
delay = _group.GetHighestPing() * 2;
|
delay = Math.Max(_group.GetHighestPing() * 2, GroupInfo.DefaultPing);
|
||||||
delay = delay < _group.DefaultPing ? _group.DefaultPing : delay;
|
|
||||||
|
|
||||||
_group.LastActivity = currentTime.AddMilliseconds(
|
_group.LastActivity = currentTime.AddMilliseconds(
|
||||||
delay);
|
delay);
|
||||||
@ -497,7 +495,7 @@ namespace Emby.Server.Implementations.SyncPlay
|
|||||||
private void HandlePingUpdateRequest(SessionInfo session, PlaybackRequest request)
|
private void HandlePingUpdateRequest(SessionInfo session, PlaybackRequest request)
|
||||||
{
|
{
|
||||||
// Collected pings are used to account for network latency when unpausing playback
|
// Collected pings are used to account for network latency when unpausing playback
|
||||||
_group.UpdatePing(session, request.Ping ?? _group.DefaultPing);
|
_group.UpdatePing(session, request.Ping ?? GroupInfo.DefaultPing);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user