【问题标题】:JW8 Player Hide CC ButtonJW8 播放器隐藏 CC 按钮
【发布时间】:2021-06-15 05:49:59
【问题描述】:

我最近将我的 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


    【解决方案1】:

    我找到了隐藏抄送按钮的方法。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-25
      • 1970-01-01
      • 2020-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多