首页 > 解决方案 > 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 
                        });

谁能帮帮我吗。先感谢您。

标签: jwplayer

解决方案


我能够找到一种隐藏抄送按钮的方法。

在您的代码中包含以下 CSS 样式。.jw-icon-cc{ display:none; }


推荐阅读