roku - Roku 在视频播放器屏幕中禁用 ClosedCaptionSelectionDialog
问题描述
在我的视频屏幕中,第一次单击 * 它会打开一个菜单矩形,如果再次单击 * 它会关闭该矩形,但问题是当我们第二次单击 * 时它会打开 ClosedCaptionSelectionDialog。当我们第二次单击 * 时,如何禁用该对话框并隐藏菜单矩形?
解决方案
菜单矩形是您在视频顶部添加的组件吗?从技术上讲,您不应使用 * 按钮来显示此类叠加层;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,因此按键在上游被重新处理。
或者我完全误解了你的情况。如果是这样,您能否发布您添加或更改的代码以显示矩形?
推荐阅读
- sql - SQL如何约束检查插入只能是字母和撇号?
- python - 如何使用 Speech_recognition 修复模块导入错误?
- c++ - 'using' 的 C++ 语法理解问题
- python-3.x - 如何检查命令用户是否在不和谐中具有特定角色?
- javascript - 使用 JavaScript 从 IOS Safari 浏览器连接到 WIFI
- postgresql - TypeORM - PrimaryGeneratedColumn 增量策略与默认策略
- cordova - “ionic cordova platform add ios”返回ENOENT错误
- spark-ar-studio - 在 Spark AR 中获取纹理采样器的单一颜色值
- checkbox - 存档页面上的 WooCommerce 附加费用复选框
- laravel - Laravel QLDB 以纯文本格式获取数据,如何?