Embedded subtitles and captions for 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. 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. Memorizing embedded subtitles works fine.

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




2019 © PlayerJS

Login

Restore password
Sign up
Log in

Sign up free

Sign up
By signing up, you agree to Terms of Service
Login if you have an account

Enterprise

Your name
Website
Email
Phone
Description
Order player

Restore password

Restore
Forgot email? Contact us