Legendas HLS

  Desculpe, este artigo está disponível em inglês

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


20.0.0
2024 © PlayerJS

Iniciar sessão

Iniciar sessão

Inscrever-se gratuitamente

Inscrever-se
Ao inscrever-se, o utilizador concorda com Termos de Serviço
Login se tiver uma conta

Restaurar a palavra-passe

Restaurar
Esqueceu-se do e-mail? Contacte-nos