首页 > 解决方案 > Roku 在视频播放器屏幕中禁用 ClosedCaptionSelectionDialog

问题描述

在我的视频屏幕中,第一次单击 * 它会打开一个菜单矩形,如果再次单击 * 它会关闭该矩形,但问题是当我们第二次单击 * 时它会打开 ClosedCaptionSelectionDialog。当我们第二次单击 * 时,如何禁用该对话框并隐藏菜单矩形?

标签: rokubrightscript

解决方案


菜单矩形是您在视频顶部添加的组件吗?从技术上讲,您不应使用 * 按钮来显示此类叠加层;https://sdkdocs.roku.com/display/sdkdoc/Remote+Control+Buttons

During full-screen video playback:
Only video is displayed:
The Star button reveals a Roku options menu offering users standard options, like Closed Captioning, and audio tracks.

如果您打算让您的频道获得 roku 认证,您可能需要更改此行为。您可以使用(例如)“向上”按来首先显示叠加层,然后您可以使用该叠加层中的星形按钮(如果需要)。

Channel UI/HUDs displayed over video:
The Star button is passed to the Channel to handle and decide what to do.
For example, Channel is displaying a mini-EPG over a video, so the Star button press would be handled by the Channel.

也就是说,在不了解更多信息的情况下,我的猜测是您的代码正在处理 * 按键以关闭覆盖但未返回 true,因此按键在上游被重新处理。

或者我完全误解了你的情况。如果是这样,您能否发布您添加或更改的代码以显示矩形?


推荐阅读