Il numero di secondi in cui il player è stato in questo stato. Se si tratta dell'ultima voce nell'elenco, il player è ancora in questo stato, quindi la durata continuerà ad aumentare.
state
stringa
Lo stato inserito dal player. Potrebbe essere "buffering", "playing", "in pausa" o "terminato".
timestamp
numero
Il timestamp in cui è stato inserito lo stato, in secondi dal 1970 (ad es.
Date.now() / 1000).
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003ecast.framework.stats.StateChange\u003c/code\u003e interface represents changes in a Cast player's state, such as buffering, playing, paused, or ended.\u003c/p\u003e\n"],["\u003cp\u003eEach state change record includes the state, the duration spent in that state, and the timestamp of when the state was entered.\u003c/p\u003e\n"]]],[],null,["# Interface: StateChange\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).stats.StateChange\n====================================================================================\n\ninterface static\n\nRepresents a player state change.\n\nProperties\n----------\n\n### duration\n\nnumber\n\nThe number of seconds the player was in this state. If this is the last\nentry in the list, the player is still in this state, so the duration\nwill continue to increase.\n\n### state\n\nstring\n\nThe state the player entered. This could be 'buffering', 'playing',\n'paused', or 'ended'.\n\n### timestamp\n\nnumber\n\nThe timestamp the state was entered, in seconds since 1970 (i.e.\nDate.now() / 1000)."]]