This commit is contained in:
parent
269ece679f
commit
7c3cae3b39
@ -27,7 +27,7 @@
|
|||||||
const canPlayType = (canPlayTypeRaw === "maybe") || (canPlayTypeRaw === "probably");
|
const canPlayType = (canPlayTypeRaw === "maybe") || (canPlayTypeRaw === "probably");
|
||||||
if(canPlayType) {
|
if(canPlayType) {
|
||||||
const Button = videojs.getComponent("Button");
|
const Button = videojs.getComponent("Button");
|
||||||
const DownloadButton = videojs.extend(videojs.getComponent("Component"), {
|
class DownloadButton extends videojs.getComponent("Component") {
|
||||||
createEl: () => {
|
createEl: () => {
|
||||||
const elem = document.createElement("a");
|
const elem = document.createElement("a");
|
||||||
elem.href = info.download;
|
elem.href = info.download;
|
||||||
@ -38,7 +38,7 @@
|
|||||||
elem.classList.add("vjs-big-download");
|
elem.classList.add("vjs-big-download");
|
||||||
return elem;
|
return elem;
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
|
||||||
const cbutton = {};
|
const cbutton = {};
|
||||||
cbutton.clickHandler = (ev) => {
|
cbutton.clickHandler = (ev) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user