getPlayerTimeCode
Retrieves the current player time code stored in the SDK.
Overview
Use this method when you want to manipulate or use the current player time code stored in the SDK.
Method Signature
getPlayerTimeCode(): number | null;
Parameters
This method does not take any parameters.
Return Value
number | null — the player time code most recently provided via updatePlayerTimeCode, or null if none has been set.
Example
const event = SDK.getMaestroEventViewModel();
const timeCode = event.getPlayerTimeCode();
if (timeCode !== null) {
console.log(`Player time code: ${timeCode}`);
}