non-null Error nếu vị trí hoặc tên nút không chính xác
clearDefaultSlotAssignments
clearDefaultSlotAssignments()
Xoá tất cả nút được chỉ định theo mặc định khỏi các ô.
hasMediaControlsOverlay
hasMediaControlsOverlay() trả về Promise chứa boolean
Báo hiệu xem lớp phủ điều khiển nội dung nghe nhìn có hiển thị trong khi phát trên giao diện người dùng của ứng dụng hay không.
Trả bóng
non-null Promise containing boolean một lời hứa sẽ phân giải thành true nếu các chế độ điều khiển nội dung đa phương tiện
được hiển thị và thành false nếu không.
setBrowseContent
setBrowseContent(browseContent)
Thiết lập nội dung Duyệt qua nội dung đa phương tiện để người dùng khám phá thêm nội dung từ thiết bị nhận của bạn.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ecast.framework.ui.Controls\u003c/code\u003e class provides an interface for configuring UI controls on touch-enabled devices for the Cast Web Receiver application.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the \u003ccode\u003eassignButton\u003c/code\u003e method to display custom buttons within predefined slots and \u003ccode\u003eclearDefaultSlotAssignments\u003c/code\u003e to remove default buttons.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ehasMediaControlsOverlay\u003c/code\u003e method indicates whether a media overlay will be shown during playback, and \u003ccode\u003esetBrowseContent\u003c/code\u003e allows you to set media browse content for user discovery.\u003c/p\u003e\n"],["\u003cp\u003eObtain an instance of the UI Controls using the \u003ccode\u003egetInstance\u003c/code\u003e static method.\u003c/p\u003e\n"]]],[],null,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[ui](/cast/docs/reference/web_receiver/cast.framework.ui).Controls \nclass static\n\nTouch Controls. Provides interface for configuring controls on touch-enabled\ndevices.\n\nMethods\n\ngetInstance \nstatic\n\ngetInstance() returns [cast.framework.ui.Controls](/cast/docs/reference/web_receiver/cast.framework.ui.Controls)\n\nReturns the UI Controls instance.\n\nReturns\n\n: [cast.framework.ui.Controls](/cast/docs/reference/web_receiver/cast.framework.ui.Controls) An instance of the UI Controls.\n\nassignButton\n\nassignButton(slot, button)\n\nDisplays button in the specified slot.\n\n| Parameter ||\n|--------|---------------------------------------------------------------------------------------------------------------------------------|\n| slot | [cast.framework.ui.ControlsSlot](/cast/docs/reference/web_receiver/cast.framework.ui#.ControlsSlot) Value must not be null. |\n| button | [cast.framework.ui.ControlsButton](/cast/docs/reference/web_receiver/cast.framework.ui#.ControlsButton) Value must not be null. |\n\nThrows\n\n: `non-null Error` if slot or button name is incorrect\n\nclearDefaultSlotAssignments\n\nclearDefaultSlotAssignments()\n\nRemove all buttons assigned by default from slots.\n\nhasMediaControlsOverlay\n\nhasMediaControlsOverlay() returns Promise containing boolean\n\nSignals whether the media controls overlay will be rendered during playback\non top of the application UI.\n\nReturns\n\n: `non-null Promise containing boolean` a promise that resolves to `true` if the media\n controls will be rendered and to `false` otherwise.\n\nsetBrowseContent\n\nsetBrowseContent(browseContent)\n\nSet Media Browse content for users to discover more contents from your\nreceiver.\n\n| Parameter ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------|\n| browseContent | [cast.framework.ui.BrowseContent](/cast/docs/reference/web_receiver/cast.framework.ui.BrowseContent) Value may be null. |"]]