As noted elsewhere I’m starting to play with the showCard mechanism for devices with screens. The simplest-but-least-pretty solution is to update the card only when I start a new track or when the user explicitly invokes one of the “tell me about this track” intents, which I’ve already implemented.
But it’d be nice to update the screen dynamically when a new track comes up.That’s two separate issues, depending on what playback mode I’m in.
For normal playback, where I’m in control of the tracks, theoretically it would be as simple as calling
this.showImageCard() from either the playback-started or playback-finished intent, passing the description of the track we are starting. I haven’t made that work yet, but I’m playing around with it.
For the live stream, I get the descriptive info by calling a REST routine, and there’s no event when the stream moves from track to track. Solution might be a periodic event that wakes me up to issue the showImageCard() call. But I’d need the Jovo object to call it against, and it’d have to be called via a path that will process the new card request… and that’s starting to sound like it needs deeper knowledge of Jovo than I have.
Has anyone already done this kind of automatic device-screen update in Jovo, and if so do you have any tips on how to approach it?