onPlayerTimeCodeUpdated()
Sends the player's position to the SDK, as the epoch time of the frame on screen.
Syntax
m.maestro.callFunc("onPlayerTimeCodeUpdated", timecodeMs)
Parameters
| Parameter | Type | Description |
|---|---|---|
timecodeMs | LongInteger | The epoch time in milliseconds of the frame on screen: the stream's start plus the playback position. Not seconds into the stream. |
Returns
This function does not return a value.
Example
sub onVideoPosition(event as object)
' m.streamStartMs: the stream's start as epoch ms (a LongInteger)
m.lastTimecodeMs = m.streamStartMs + Int(event.getData() * 1000)
if m.maestro <> invalid then m.maestro.callFunc("onPlayerTimeCodeUpdated", m.lastTimecodeMs)
end sub
Notes
- Call it on every position tick, from the start of playback. A value sent before
configis kept, and the first panels build with it. - Overlay polling and the What Just Happened panel wait for the first value. The What Just Happened panel stays blank (no title, list, or empty state) until the first timecode is received. Panels that sync to playback show no data past it.
- Seeks and rewinds are fine: send the new position.
- When the content changes (a new
configor event), the SDK drops the previous value and waits for the next one.