mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Send playing item status in SyncPlay group update
This commit is contained in:
@@ -647,8 +647,9 @@ namespace Emby.Server.Implementations.SyncPlay
|
||||
public PlayQueueUpdate GetPlayQueueUpdate(PlayQueueUpdateReason reason)
|
||||
{
|
||||
var startPositionTicks = PositionTicks;
|
||||
var isPlaying = _state.Type.Equals(GroupStateType.Playing);
|
||||
|
||||
if (_state.Type.Equals(GroupStateType.Playing))
|
||||
if (isPlaying)
|
||||
{
|
||||
var currentTime = DateTime.UtcNow;
|
||||
var elapsedTime = currentTime - LastActivity;
|
||||
@@ -667,6 +668,7 @@ namespace Emby.Server.Implementations.SyncPlay
|
||||
PlayQueue.GetPlaylist(),
|
||||
PlayQueue.PlayingItemIndex,
|
||||
startPositionTicks,
|
||||
isPlaying,
|
||||
PlayQueue.ShuffleMode,
|
||||
PlayQueue.RepeatMode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user