Liczba sekund, przez które odtwarzacz był w tym stanie. Jeśli to ostatnia pozycja na liście, odtwarzacz nadal jest w tym stanie, więc czas trwania będzie się wydłużał.
state
ciąg znaków
Stan podany przez gracza. Może to być „buffering” (buforowanie), „playing” (odtwarzanie), „paused” (wstrzymane) lub „ended” (zakończone).
sygnatura czasowa
Liczba
Sygnatura czasowa wprowadzenia stanu w sekundach od 1970 roku (np. Date.now() / 1000).
[null,null,["Ostatnia aktualizacja: 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)."]]