Skip to main content

Module recently_played

Module recently_played 

Source
Expand description

Home’s “Recently played” row (feature spoolframe:recently-played-row): one row of every kind, each card once at its latest counted play.

A client says where it started a track (PlaySource) as it starts the playback (StartPlayback.source) or records a play made offline (OfflinePlay.source). The field needs no feature: a server that does not know it ignores it. The server keeps it with the play, and RecentlyPlayedRow answers cards (RecentCard) by it and by the user’s RecentlyPlayedPreferences: for music, a play from a playlist shows the playlist, one from an album the album, and a track queued by hand the track; shows by show, season or episode; films each their own. The preferences only change what the row shows: every play is recorded and counted whatever they say.

Structs§

RecentlyPlayedPreferences
How each kind shows in a user’s Home “Recently played” row, kept on the server for every device of theirs (RecentlyPlayedPreferences and SetRecentlyPlayedPreferences in spoolframe-protocol). It only changes what the row shows: every play is recorded and counted whatever it says. Every field is required on the wire.

Enums§

PlaySource
Where a track’s play was started.
RecentCard
One card of Home’s “Recently played” row. A film, an episode or a track has its watch state and play count filled.
RecentMoviesMode
How the user’s films show in Home’s “Recently played” row.
RecentMusicMode
How the user’s music shows in Home’s “Recently played” row.
RecentShowsMode
How the user’s shows show in Home’s “Recently played” row.

Constants§

MAX_ROW
The most cards a RecentlyPlayedRow answers.