fix: also set itemid for first track in queue
This commit is contained in:
@@ -284,8 +284,8 @@ export async function sendPlaybackEvent(path: string, credentials: Credentials)
|
|||||||
PositionTicks: position * 1_000_000,
|
PositionTicks: position * 1_000_000,
|
||||||
PlaybackRate: 1,
|
PlaybackRate: 1,
|
||||||
PlayMethod: 'transcode',
|
PlayMethod: 'transcode',
|
||||||
MediaSourceId: track ? queue[track].backendId : null,
|
MediaSourceId: track !== null ? queue[track].backendId : null,
|
||||||
ItemId: track ? queue[track].backendId : null,
|
ItemId: track !== null ? queue[track].backendId : null,
|
||||||
CanSeek: true,
|
CanSeek: true,
|
||||||
PlaybackStartTimeTicks: null,
|
PlaybackStartTimeTicks: null,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user