add title to chromecast

This commit is contained in:
2021-05-19 08:55:20 +02:00
parent dca632e28c
commit d443fc74bf
7 changed files with 28 additions and 33 deletions

View File

@ -28,6 +28,10 @@
options.techOrder = ["chromecast", "html5"];
options.plugins = {};
options.plugins.chromecast = {};
player.plugins.chromecast.requestTitleFn = (src) => {
return "{{ title }}";
}
let player = videojs(video, options);
let source = {};
source.type = ctype;