What Just Happened
This page covers the panel that lists every recap. For the module that pops up over the video, see the What Just Happened module.
Overview
The What Just Happened panel gives viewers short, AI-generated recaps of the key moments in a live event, as a timeline with the newest recap first. The panel is the destination of the What Just Happened module: when the viewer picks Explore More on the module, your application opens this panel.
The SDK fetches and renders the recaps. Your application only has to keep the panel in step with the video:
- The host reports the playhead and opens the panel.
- The panel polls the recap feed and lists the recaps up to the playhead.
The panel type is whatJustHappened (MaestroPanelType.WHAT_JUST_HAPPENED).
How the host and the panel interact
- Start the session. The SDK starts fetching recaps as soon as
userDidStartWatchingEventresolves, whether or not the panel is ever opened. - Report the playhead. Call
updatePlayerTimeCodewith the playhead as epoch milliseconds. See The playhead. - Open the panel. Call
didShowPanelandsetActivePanelwithMaestroPanelType.WHAT_JUST_HAPPENED, for example from the module'sonEngagecallback.
Analytics
The panel sends one impression through your delegate's
trackImpression. It does not send any
trackAction events. For the module's events, see the
module's analytics.
| Name | When | Fields |
|---|---|---|
panel_selected | Each time the panel is displayed. | e0_kingdom: 'panel', e1_phylum: 'view', e2_class: 'whatJustHappened', e3_order: the panel's ID, e4_family: the panel's name, metadata: the event's page metadata. |
In a multi-event session, trackImpression is called once for each event whose page has a What Just Happened panel,
each time with that event's own payload.
Client settings
These settings live on the panel's configuration on maestro.io. In a multi-event session they are read from the first event's page.
| Setting | Type | Default | Description |
|---|---|---|---|
polling_interval | number | 60 | How often to fetch recaps, in seconds. Values below 10 are raised to 10. The module uses the same recaps, so this also sets how quickly it sees a new one. |
required_time_in_session | number | 50 | Fallback for the module's own required_time_in_session. See the module's client settings. |
panel_enabled | object | Shown | Turns the panel on or off per platform and app version. Turning the panel off also turns the module off. |
Behavior notes
- Fetching starts with the session. The SDK starts polling when the session starts, not when the panel opens.
- The recap feed is tied to the event. The feed is chosen from the event's page metadata on
maestro.io (
external_field_3). If the page does not set it, the panel shows its empty state, the module never appears, and a warning is logged. - **The playhead.** Recaps dated after the playhead are not listed. `updatePlayerTimeCode` must receive **epoch milliseconds**, not seconds since the start of the stream. Values earlier than the year 2000 are ignored with a one-time warning, and the panel behaves as if no playhead had been reported. A playhead pinned to the wrong time hides everything, and a warning is logged.
- Recaps read here don't pop up. Recaps the viewer has seen in the open panel never appear in the module afterwards.
- Empty and error states. Until the first recap arrives, the panel shows No Insights Yet. If the feed cannot be loaded before any recap has arrived, the panel shows Oops! Something went wrong. with a Try Again button that fetches again immediately. Once recaps have loaded, a later failure keeps the last list on screen.
- Changing events. When the viewer switches events, the panel re-reads its settings, clears its list and moves to the new event's feed.
Example
import SDK, {
IMaestroEventDelegate,
ImpressionTrackEvent,
MaestroPanelType,
} from "@maestro_io/maestro-web-sdk";
class Delegate implements IMaestroEventDelegate {
// ...other delegate methods
trackImpression(impression: ImpressionTrackEvent): void {
analytics.track(impression.name, impression);
}
}
const eventViewModel = await SDK.userDidStartWatchingEvent({
eventId: "YOUR_EVENT_ID",
delegate: new Delegate(),
});
const unmountPanel = await SDK.renderPanel("panel-container");
// Report the playhead as epoch milliseconds.
player.on("timeupdate", () => {
eventViewModel.updatePlayerTimeCode(player.getCurrentWallClockMs());
});
// Open the panel on What Just Happened, for example from the module's onEngage.
const openWhatJustHappened = () => {
eventViewModel.didShowPanel();
eventViewModel.setActivePanel(MaestroPanelType.WHAT_JUST_HAPPENED);
};
For rendering the module over your video, see the What Just Happened module example.