如何在 YouTube 嵌入链接中禁用 YouTube 字幕 [英] How To Disable Youtube Captions in a Youtube Embed Link
问题描述
在 youtube 上创建嵌入链接时,字幕默认为 on
.嵌入 youtube 链接时,有没有办法禁用或关闭字幕?
When creating an embed link on youtube the Captions are on
by default. Is there a way to disable to the captions or turning them off when embedding a youtube link?
文档表明:
Make captions automatically appear for an embedded video by adding "&cc_load_policy=1" to the video's embed code.
我需要反过来.我尝试使用 &cc_load_policiy=0
但这没有用.我还发现了 this 问题,但似乎没有一个答案有效.
And I need to it the other way around.
I tried to use &cc_load_policiy=0
but that didn't work. I also found this question but none of the answers seem to work.
我也在使用 VideoJS.所以也许有办法通过它来做到这一点......
I am using also VideoJS. So maybe there is a way to do it through it...
谢谢
推荐答案
cc_load_policy(支持的播放器:AS3、AS2) 值:1.默认为基于用户偏好.设置为 1 将导致隐藏式字幕即使用户关闭了字幕,也会默认显示.
cc_load_policy (supported players: AS3, AS2) Values: 1. Default is based on user preference. Setting to 1 will cause closed captions to be shown by default, even if the user has turned captions off.
不幸的是,我认为这是不可能的,因为这是用户偏好.cc_load_policy 指的是禁用/启用播放器的切换按钮(仅限于 AS3、AS2 播放器).由于 VideoJS 基于 HTML5,我认为 cc_load_policy 也无法供您使用.
Unfortunately I don't think this is possible as it's a user-preference. The cc_load_policy refers to disabling/enabling the toggle button for the player (limited to AS3, AS2 players). And since VideoJS is based off HTML5, I'm imagining the cc_load_policy isn't available for your use either.
这篇关于如何在 YouTube 嵌入链接中禁用 YouTube 字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!