iOS: CarPlay (#420)
A CarPlay scene beside the phone's: In Progress, Unread and Shows as
CPListTemplates from ipx's API, read with the player's credentials, and
a pick played through the same Playback, so it resumes from the saved
place, saves as it goes and marks read at 90%. Now Playing is the
system's template over Playback's now-playing info.
When the car starts a different episode the page is sent
{t:"replaced"} and closes its player bar. Left open, the bar would have
gone on as the old episode while the host's clock belonged to the new
one, saving that time and marking the wrong item read.
The badge's fetch moves into API.get, which CarPlay shares. Build 13.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -200,6 +200,16 @@ function installNativePlayback(){
|
||||
fire('pause');
|
||||
fire('ended');
|
||||
break;
|
||||
case 'replaced':
|
||||
// The car chose another episode (#420). The bar would go on as this one, saving its
|
||||
// place and marking it read by the other's clock, so it closes. No pause event: that
|
||||
// saves, and N.on is off, so it would write the page's stale time to ipx itself.
|
||||
N.on = false; N.paused = true;
|
||||
player.guid = null;
|
||||
$('#player').classList.remove('on');
|
||||
renderEntries();
|
||||
syncListening();
|
||||
break;
|
||||
case 'error':
|
||||
N.paused = true;
|
||||
fire('pause');
|
||||
|
||||
Reference in New Issue
Block a user