add high res thumbnail
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user