Proyecto App Linux

This commit is contained in:
2026-05-03 23:43:09 +02:00
commit 7482733843
1248 changed files with 189750 additions and 0 deletions
@@ -0,0 +1,67 @@
/**
* Playback Position IPC event handlers
* Operations for managing video playback progress
*/
import { handleWorkerRequest } from './worker-events.utils';
handleWorkerRequest(
'DB_SAVE_PLAYBACK_POSITION',
(playlistId: string, data: unknown) => ({
playlistId,
data,
})
);
handleWorkerRequest(
'DB_GET_PLAYBACK_POSITION',
(
playlistId: string,
contentXtreamId: number,
contentType: 'vod' | 'episode'
) => ({
playlistId,
contentXtreamId,
contentType,
})
);
handleWorkerRequest(
'DB_GET_SERIES_PLAYBACK_POSITIONS',
(playlistId: string, seriesXtreamId: number) => ({
playlistId,
seriesXtreamId,
})
);
handleWorkerRequest(
'DB_GET_RECENT_PLAYBACK_POSITIONS',
(playlistId: string, limit?: number) => ({
playlistId,
limit,
})
);
handleWorkerRequest('DB_GET_ALL_PLAYBACK_POSITIONS', (playlistId: string) => ({
playlistId,
}));
handleWorkerRequest(
'DB_CLEAR_ALL_PLAYBACK_POSITIONS',
(playlistId: string) => ({
playlistId,
})
);
handleWorkerRequest(
'DB_CLEAR_PLAYBACK_POSITION',
(
playlistId: string,
contentXtreamId: number,
contentType: 'vod' | 'episode'
) => ({
playlistId,
contentXtreamId,
contentType,
})
);