Dữ liệu thông tin xác thực dùng để xác định thông tin xác thực của người gửi.
language
chuỗi có tính chất rỗng
Ngôn ngữ tuỳ chọn cần thêm vào giá trị tiêu đề Accept-Language khi chạy ứng dụng nhận. Sẽ bỏ qua nếu bạn tham gia một phiên hiện có. Giá trị được biểu thị dưới dạng thẻ '-'
theo RFC 5646. Ví dụ: "es-ES".
requestSessionTimeout
number
Thời gian chờ dùng để yêu cầu một phiên cho ứng dụng tính bằng mili giây. Giá trị mặc định là giá trị chrome.cast.timeout.requestSession.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003echrome.cast.SessionRequest\u003c/code\u003e is used to initiate or join a Google Cast session with a receiver application.\u003c/p\u003e\n"],["\u003cp\u003eIt requires the receiver application ID (\u003ccode\u003eappId\u003c/code\u003e) and optionally accepts capabilities, timeout, Android receiver compatibility, and credentials data.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eappId\u003c/code\u003e, \u003ccode\u003ecapabilities\u003c/code\u003e, \u003ccode\u003ecredentialsData\u003c/code\u003e, and \u003ccode\u003eandroidReceiverCompatible\u003c/code\u003e for configuring the session request.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying the required capabilities of the receiver device and credentials for sender identification.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can set a timeout for the session request and indicate Android receiver compatibility.\u003c/p\u003e\n"]]],["The `SessionRequest` class facilitates starting or connecting to a session. It requires an `appId` and accepts optional parameters: `capabilities` (receiver requirements), `timeout` (session request duration), `androidReceiverCompatible` (Android compatibility), and `credentialsData` (sender credentials). Properties include these parameters, plus `language` for receiver launch and `requestSessionTimeout` for request duration. It defines the specifications to request a casting session.\n"],null,["# Class: SessionRequest\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).SessionRequest\n=========================================================================\n\nclass static\n\nA request to start or connect to a session.\n\nConstructor\n-----------\n\n### SessionRequest\n\nnew\nSessionRequest(appId, capabilities, timeout, androidReceiverCompatible, credentialsData)\n\n| #### Parameter ||\n|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| appId | string The receiver application id. |\n| capabilities | Optional Array of non-null [chrome.cast.Capability](/cast/docs/reference/web_sender/chrome.cast#.Capability) Required capabilities for the receiver. Value must not be null. |\n| timeout | Optional number Optional timeout for requesting a session for this application. |\n| androidReceiverCompatible | Optional boolean Indicates if the app is compatible with an Android Receiver. |\n| credentialsData | Optional [chrome.cast.CredentialsData](/cast/docs/reference/web_sender/chrome.cast.CredentialsData) Credentials data used to identify the credentials of the sender. Value may be null. |\n\nProperties\n----------\n\n### androidReceiverCompatible\n\nboolean\n\nIndicates if the app is compatible with an Android Receiver.\n\n### appId\n\nstring\n\nThe receiver application id.\n\n### capabilities\n\nnon-null Array of non-null [chrome.cast.Capability](/cast/docs/reference/web_sender/chrome.cast#.Capability)\n\nCapabilities required of the receiver device.\n\n### credentialsData\n\nnullable [chrome.cast.CredentialsData](/cast/docs/reference/web_sender/chrome.cast.CredentialsData)\n\nCredentials data used to identify the credentials of the sender.\n\n### language\n\nnullable string\n\nOptional language to add to the Accept-Language header value when\nlaunching the receiver application. Ignored if joining an already\nexisting session. The value is represented as '-' tag as per RFC 5646. For example 'es-ES'.\n\n### requestSessionTimeout\n\nnumber\n\nThe timeout used for requesting a session for the application in\nmilliseconds. Defaults to the value of\nchrome.cast.timeout.requestSession."]]