Support loading external subtitles and multiple videos

This commit is contained in:
Rafostar
2020-11-24 11:12:43 +01:00
parent ab39da1975
commit 3fcd612e6e
2 changed files with 44 additions and 3 deletions

View File

@@ -147,6 +147,14 @@ class ClapperPlayer extends PlayerBase
return this._playlist;
}
set_subtitles(uri)
{
this.set_subtitle_uri(uri);
this.set_subtitle_track_enabled(true);
debug(`applied subtitle track: ${uri}`);
}
set_visualization_enabled(value)
{
if(value === this.visualization_enabled)