28 lines
536 B
Python
28 lines
536 B
Python
from infrastructure.msgspec_fastapi import AppStruct
|
|
|
|
|
|
class PlaybackSessionResponse(AppStruct):
|
|
play_session_id: str
|
|
item_id: str
|
|
|
|
|
|
class StartPlaybackRequest(AppStruct):
|
|
play_session_id: str | None = None
|
|
|
|
|
|
class JellyfinPlaybackUrlResponse(AppStruct):
|
|
url: str
|
|
seekable: bool
|
|
playSessionId: str
|
|
|
|
|
|
class ProgressReportRequest(AppStruct):
|
|
play_session_id: str
|
|
position_seconds: float
|
|
is_paused: bool = False
|
|
|
|
|
|
class StopReportRequest(AppStruct):
|
|
play_session_id: str
|
|
position_seconds: float
|