[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eSessionStateEventData\u003c/code\u003e provides data for session state changed events, including the current session, session state, and optional error code.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for the session start failure reason (\u003ccode\u003eerrorCode\u003c/code\u003e), the Cast session (\u003ccode\u003esession\u003c/code\u003e), and the Cast session state (\u003ccode\u003esessionState\u003c/code\u003e).\u003c/p\u003e\n"]]],["`SessionStateEventData` provides information about changes in a Cast session's state. It includes the current `CastSession`, the `SessionState`, and an optional `ErrorCode` for start failures. The `session` can be null if no session is available. The `sessionState` property details the current state, and `errorCode` explains why a session might have failed to start. These properties allow for monitoring and reacting to the current status of the session.\n"],null,["# Class: SessionStateEventData\n\ncast.[framework](/cast/docs/reference/web_sender/cast.framework).SessionStateEventData\n======================================================================================\n\nclass static\n\nData for session state changed event.\n\nConstructor\n-----------\n\n### SessionStateEventData\n\nnew\nSessionStateEventData(session, sessionState, opt_errorCode)\n\n| #### Parameter ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| session | [cast.framework.CastSession](/cast/docs/reference/web_sender/cast.framework.CastSession) Current session if available. Value may be null. |\n| sessionState | [cast.framework.SessionState](/cast/docs/reference/web_sender/cast.framework#.SessionState) Current session state. Value must not be null. |\n| opt_errorCode | Optional [chrome.cast.ErrorCode](/cast/docs/reference/web_sender/chrome.cast#.ErrorCode) Optional error code for start failed state. Value must not be null. |\n\nProperties\n----------\n\n### errorCode\n\nnullable [chrome.cast.ErrorCode](/cast/docs/reference/web_sender/chrome.cast#.ErrorCode)\n\nSession start failure reason.\n\n### session\n\nnullable [cast.framework.CastSession](/cast/docs/reference/web_sender/cast.framework.CastSession)\n\nCast session.\n\n### sessionState\n\nnon-null [cast.framework.SessionState](/cast/docs/reference/web_sender/cast.framework#.SessionState)\n\nCast session state."]]