Đại diện cho sự thay đổi về trạng thái của người chơi.
Thuộc tính
duration
number
Số giây mà người chơi ở trạng thái này. Nếu đây là mục cuối cùng trong danh sách, thì trình phát vẫn ở trạng thái này, do đó, thời lượng sẽ tiếp tục tăng lên.
state
string
Trạng thái mà người chơi đã nhập. Trạng thái này có thể là " Cách lưu vào bộ đệm", "Đang phát", "Đã tạm dừng" hoặc "Đã kết thúc".
timestamp
number
Dấu thời gian mà trạng thái được nhập, tính bằng giây kể từ năm 1970 (tức là Date.now() / 1000).
[null,null,["Cập nhật lần gần đây nhất: 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)."]]