mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #16189] SyncPlay: add authoritative V2 group-state/snapshot API while preserving legacy route compatibility #14553
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/16189
Author: @Al-Battashi
Created: 2/6/2026
Status: 🔄 Open
Base:
master← Head:codex/syncplay-v2-server📝 Commits (1)
2b7d50asyncplay: add v2 authoritative group state and reconciliation📊 Changes
13 files changed (+1324 additions, -31 deletions)
View changed files
📝
Emby.Server.Implementations/SyncPlay/Group.cs(+153 -14)📝
Emby.Server.Implementations/SyncPlay/SyncPlayManager.cs(+73 -5)📝
Jellyfin.Api/Controllers/SyncPlayController.cs(+62 -1)📝
Jellyfin.Server.Implementations/Security/AuthorizationContext.cs(+3 -1)📝
MediaBrowser.Controller/SyncPlay/ISyncPlayManager.cs(+15 -0)📝
MediaBrowser.Model/SyncPlay/GroupUpdateType.cs(+30 -10)➕
MediaBrowser.Model/SyncPlay/SyncPlayGroupSnapshotDto.cs(+56 -0)➕
MediaBrowser.Model/SyncPlay/SyncPlayGroupSnapshotUpdate.cs(+24 -0)➕
MediaBrowser.Model/SyncPlay/SyncPlayGroupStateV2Dto.cs(+44 -0)➕
docs/syncplay/FILE_INDEX.md(+135 -0)➕
docs/syncplay/README.md(+245 -0)➕
tests/Jellyfin.Api.Tests/Controllers/SyncPlayControllerTests.cs(+200 -0)➕
tests/Jellyfin.Server.Implementations.Tests/SyncPlay/GroupV2StateTests.cs(+284 -0)📄 Description
Summary
This PR introduces the SyncPlay V2 server protocol surface and state model used by the new web client, while keeping existing SyncPlay routes available for backward compatibility.
What Changed
SyncPlayGroupSnapshotDtoSyncPlayGroupSnapshotUpdateSyncPlayGroupStateV2DtoGET /SyncPlay/V2/JoinedGET /SyncPlay/V2/{id}New,Join,Leave,List,SetNewQueue,SetPlaylistItem,RemoveFromPlaylist,MovePlaylistItem,Queue,Pause,Unpause,Stop,Seek,Ready,Buffering,SetIgnoreWait,NextItem,PreviousItem,SetRepeatMode,SetShuffleMode,PingCompatibility
/SyncPlay/*routes remain exposed./SyncPlay/V2/*is the authoritative protocol for modern clients.Validation
Client Side : https://github.com/jellyfin/jellyfin-web/pull/7566
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.