What a quick play of a whole library plays (QuickPlayTask). Its shuffles take watched episodes only, so a shuffle spoils nothing, and leave out a video the viewer is partway through, which Continue Watching resumes instead.
Pure, so the rules are unit-tested without a network seam; QuickPlayTask makes the requests.
Methods
(static) watchedEpisodesQuery(libraryId) → {object}
Query (for BuildGetItemsByQueryRequest) for up to 500 of a library's watched episodes, at random. The TV library's quick play, and the episode half of a mixed library's.
No images: the player loads its own art for the item it plays.
| Name | Type | Description |
|---|---|---|
libraryId | string |
- Type:
- object
(static) withoutInProgress(items) → {object}
items without the videos the viewer is partway through (a playback position above 0). The server cannot filter these out itself (its filters have IsResumable, not its opposite), so the query must ask for user data. A video with no user data is kept.
| Name | Type | Description |
|---|---|---|
items | dynamic | raw items (BaseItemDto) |
a new array
- Type:
- object