Add controls
This commit is contained in:
parent
389e5d02f2
commit
8b4cdef690
@ -74,7 +74,7 @@ const components = {
|
||||
return element("div", { classNames: ["player"] }, [
|
||||
element("div", { content: video.metadata.title, classNames: ["player-title"] }),
|
||||
element("div", { content: video.metadata.author, classNames: ["player-author"] }),
|
||||
element("video", { attributes: { "poster": API_URL + "/library/video/" + encodeURIComponent(video.id) + "/thumbnail" } }, [
|
||||
element("video", { attributes: { "poster": API_URL + "/library/video/" + encodeURIComponent(video.id) + "/thumbnail", "controls": "" } }, [
|
||||
element("source", { attributes: { "src": streamURL } })
|
||||
]),
|
||||
element("button", { onClick: downloadVideo }, [
|
||||
|
@ -60,6 +60,7 @@
|
||||
}
|
||||
|
||||
.player>video {
|
||||
width: 1000px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
|
Loading…
x
Reference in New Issue
Block a user