Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用 JWPlayer 7 并设置 vtt 文件,我可以看到“CC”按钮并切换隐藏式字幕。是否有可能我可以在视频加载时或通过 java 脚本打开隐藏式字幕?目前,用户必须单击“CC”按钮来打开/关闭它们。
在设置 JWPlayer 时使用它
tracks: [{ file: "file.vtt", label: "English", kind: "captions", "default": true }],
default = true 将自动加载字幕。