jwplayer - JW8 播放器隐藏 CC 按钮
问题描述
我最近将我的 JW 播放器更新为 JW8,更新后我只在 safari 浏览器中获得 CC 按钮,单击 CC 按钮时我看不到任何标题。基本上我想删除 CC 按钮,因为在我的应用程序中播放的视频都没有标题。
我试图在 JW 设置函数 renderCaptionsNatively 中包含以下代码:false。但在添加相同内容后,我仍然可以看到 CC 按钮。
jwplayer("video").setup({
file: _this18.$sce.trustAsResourceUrl(videoPlayURL),
autostart: true,
height: "300",
width: "100%",
playbackRateControls: [0.25, 0.50, 0.75, 1, 1.25, 1.5, 2.0, 2.5, 3.0],
**renderCaptionsNatively: false, //Hide CC button**
primary: "html5",
hlshtml: true
});
谁能帮帮我吗。先感谢您。
解决方案
我能够找到一种隐藏抄送按钮的方法。
在您的代码中包含以下 CSS 样式。.jw-icon-cc{ display:none; }
推荐阅读
- r - 闪亮更新 plotOutput brushOpts
- css - h1定位问题
- c++ - 对整个数组进行冒泡排序
- php - if..else 嵌套在 oci 和 php 的 while 循环中,但 if...else 没有被调用
- openlayers - 有没有办法在 openlayers 5 中强制重新加载/刷新地图?
- python - Entrez (biopython):如何将术语搜索限制在特定期刊?(考研)
- android - 由于权限政策,我无法发布我的应用
- twitter-bootstrap - Bootstrap 4 - col-sm-12 的 col 没有响应
- java - Thymeleaf 使用 th:each 动态创建表单
- java - 从 csv 文件导入 Excel 进行转换