Subtitle


The player supports subtitles in .srt, .ass, .ssa and .vtt formats.

In iOS, the player switches in full screen mode to native interface, which supported only vtt format. So we recommend use this format.

You can pass URL of the source in the code by variable subtitle. It is important to consider cross-domain policy

The name of subtitle (usually a language) can be specified in square brackets

var player = new Playerjs({"subtitle":"[En]//site.com/subtitle.vtt", "file":"//site.com/video.mp4"});

You can specify a listing:

[English]http://site.com/subtitle.vtt,[Spanish]http://site.com/subtitular.srt

Similarly, the subtitle variable is passed in Playlist and JS API.

Selecting subtitles is possible in the settings menu Settings / Settings menu

To customize the design use Plugins / Subtitle

The parameter default_subtitle allows you to enable the desired subtitle language (if memorize option is enabled in the settings, it has priority).

var player = new Playerjs({"subtitle":"[En]//site.com/en.vtt,[Es]//site.com/es.vtt","default_subtitle":"Es"});

2018 © Binom LLC

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

Restore password

Restore
Forgot email? Contact us