add high res thumbnail

This commit is contained in:
2021-05-25 09:54:54 +02:00
parent d418b429aa
commit dc164fd377
2 changed files with 10 additions and 1 deletions

View File

@ -18,6 +18,11 @@
return url.href;
}
const getProvider = () => {
const search = new URLSearchParams(location.search);
return search.get("provider");
}
const upstream = findUpstreamVideo();
const xhr = new XMLHttpRequest();
xhr.open("HEAD", upstream, true);
@ -47,7 +52,9 @@
options.plugins.chromecast = {};
options.plugins.chromecast.addButtonToControlBar = false;
const player = videojs(video, options);
player.poster(findUpstreamPoster());
if(getProvider() !== "nextcloud") {
player.poster(findUpstreamPoster());
}
const source = {};
source.type = ctype;
source.src = upstream;