Trạng thái của thiết bị nhận sẽ hiển thị với người dùng trong giao diện người dùng tiện ích.
Chỉ hợp lệ cho người nhận CUSTOM. Để cho thấy trình thu nhận là đang rảnh, hãy đặt displayStatus thành rỗng.
friendlyName
string
Tên do người dùng đặt (thoát URI) cho trình nhận. Bắt buộc.
isActiveInput
nullable boolean
Giá trị này cho biết liệu thiết bị truyền có phải là đầu vào đang hoạt động hay không.
Nếu đầu vào HDMI mà Thiết bị truyền được kết nối để hỗ trợ CEC và thiết bị có thể biết trạng thái hoạt động, thì giá trị này sẽ được cung cấp.
Nếu không, giá trị này là rỗng.
label
string
Giá trị nhận dạng cho receiver (trình thu nhận) duy nhất cho hồ sơ trình duyệt và nguồn gốc của ứng dụng API. Chính sách này sẽ ổn định khi trình duyệt khởi động lại, nhưng có thể thay đổi nếu người dùng xoá bộ nhớ cục bộ.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003echrome.cast.Receiver\u003c/code\u003e objects describe a receiver running an application and are typically not created directly by the client.\u003c/p\u003e\n"],["\u003cp\u003eReceivers have properties like \u003ccode\u003efriendlyName\u003c/code\u003e, \u003ccode\u003ecapabilities\u003c/code\u003e, \u003ccode\u003evolume\u003c/code\u003e, and \u003ccode\u003ereceiverType\u003c/code\u003e providing information about the device.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elabel\u003c/code\u003e property uniquely identifies the receiver within the browser profile and origin, persisting across restarts unless local storage is cleared.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edisplayStatus\u003c/code\u003e property, specific to custom receivers, controls the status displayed in the extension UI and can be set to null for idle.\u003c/p\u003e\n"],["\u003cp\u003eWhile \u003ccode\u003evolume\u003c/code\u003e reflects the current receiver volume, \u003ccode\u003eisActiveInput\u003c/code\u003e indicates if the cast device is the active input source, if supported and detectable.\u003c/p\u003e\n"]]],[],null,["# Class: Receiver\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).Receiver\n===================================================================\n\nclass static\n\nDescribes the receiver running an application.\nNormally, these objects should not be created by the client.\n\nConstructor\n-----------\n\n### Receiver\n\nnew\nReceiver(label, friendlyName, capabilities, volume)\n\n| #### Parameter ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| label | string An identifier for the receiver. |\n| friendlyName | string The user-visible name of the receiver. |\n| capabilities | Optional Array of non-null [chrome.cast.Capability](/cast/docs/reference/web_sender/chrome.cast#.Capability) Set of receiver capabilities. Value must not be null. |\n| volume | Optional [chrome.cast.Volume](/cast/docs/reference/web_sender/chrome.cast.Volume) The receiver's current volume. Value must not be null. |\n\nProperties\n----------\n\n### capabilities\n\nnon-null Array of non-null [chrome.cast.Capability](/cast/docs/reference/web_sender/chrome.cast#.Capability)\n\nThe capabilities of the receiver, for example audio and video.\n\n### displayStatus\n\nnullable [chrome.cast.ReceiverDisplayStatus](/cast/docs/reference/web_sender/chrome.cast.ReceiverDisplayStatus)\n\nReceiver status shown to the user in the extension UI.\nOnly valid for CUSTOM receivers. To show the receiver as idle,\nset displayStatus to null.\n\n### friendlyName\n\nstring\n\nThe user given name (URI-escaped) for the receiver. Mandatory.\n\n### isActiveInput\n\nnullable boolean\n\nThe value reflects whether the cast device is the active input.\nIf the HDMI input the Cast device is connected to supports CEC and\nthe device can know the active status, this value will be provided.\nOtherwise, it is null.\n\n### label\n\nstring\n\nAn identifier for the receiver that is unique to the browser\nprofile and the origin of the API client. It is stable across browser\nrestarts, but may change if the user clears his local storage.\n\n### receiverType\n\nnon-null [chrome.cast.ReceiverType](/cast/docs/reference/web_sender/chrome.cast#.ReceiverType)\n\nThe type of receiver device. Mandatory.\n\n### volume\n\nnullable [chrome.cast.Volume](/cast/docs/reference/web_sender/chrome.cast.Volume)\n\nThe current volume of the receiver. If non-null, the volume's level and\nmuted properties will always be set."]]