HLS 字幕

  抱歉,此页面正在等待翻译成土耳其语

Subtitles

By default, the player uses the subtitle connection using separate files, but for HLS it is possible to use the built-in mechanism, which is in the hls.js module. Subtitle options in this case the player will receive from the manifest m3u8 (in some cases (Safari, iOS) the stream is played directly by the browser and the player will not see the subtitles). It is enough to enable the option in the plugin HLS / Select subtitles from the manifest

Unfortunately, this method does not allow you to control the design and location of the closed captions. Therefore, we recommend to implement the display of subtitles separately. You can also change some subtitle parameters using CSS.

By default, the embedded subtitles are disabled, but you can enable them by specifying the name of the default subtitle in the code with the default_subtitle parameter

Captions

Support for embedded captions can be enabled with your own button. You need to add a custom element to the control panel, specifying in the Command field api:captions,0/1 and opacity 0.5


19.12.14
2024 © PlayerJS

登录

登录

免费注册

注册
注册即表示您同意服务条款
登录(如果您有帐户)

恢复密码

恢复
忘记电子邮件?联系我们