aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/videojs-components
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-30 11:48:21 +0200
committerChocobozzz <me@florianbigard.com>2021-07-30 11:48:21 +0200
commit23ca2f7bc942f06ed5653b41f119b84c54f1948d (patch)
tree3d5c43700c6f4897308d3183541a73751860a63f /client/src/assets/player/videojs-components
parent171efc48e67498406feb6d7873b3482b41505515 (diff)
downloadPeerTube-23ca2f7bc942f06ed5653b41f119b84c54f1948d.tar.gz
PeerTube-23ca2f7bc942f06ed5653b41f119b84c54f1948d.tar.zst
PeerTube-23ca2f7bc942f06ed5653b41f119b84c54f1948d.zip
Fix peertube link button
Diffstat (limited to 'client/src/assets/player/videojs-components')
-rw-r--r--client/src/assets/player/videojs-components/peertube-link-button.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/src/assets/player/videojs-components/peertube-link-button.ts b/client/src/assets/player/videojs-components/peertube-link-button.ts
index 98434898c..c49cee566 100644
--- a/client/src/assets/player/videojs-components/peertube-link-button.ts
+++ b/client/src/assets/player/videojs-components/peertube-link-button.ts
@@ -4,12 +4,9 @@ import { PeerTubeLinkButtonOptions } from '../peertube-videojs-typings'
4 4
5const Button = videojs.getComponent('Button') 5const Button = videojs.getComponent('Button')
6class PeerTubeLinkButton extends Button { 6class PeerTubeLinkButton extends Button {
7 private shortUUID: string
8 7
9 constructor (player: videojs.Player, options?: PeerTubeLinkButtonOptions) { 8 constructor (player: videojs.Player, options?: PeerTubeLinkButtonOptions) {
10 super(player, options as any) 9 super(player, options as any)
11
12 this.shortUUID = options.shortUUID
13 } 10 }
14 11
15 createEl () { 12 createEl () {
@@ -39,7 +36,7 @@ class PeerTubeLinkButton extends Button {
39 } 36 }
40 37
41 private buildLink () { 38 private buildLink () {
42 const url = buildVideoLink({ shortUUID: this.shortUUID }) 39 const url = buildVideoLink({ shortUUID: (this.options_ as PeerTubeLinkButtonOptions).shortUUID })
43 40
44 return decorateVideoLink({ url, startTime: this.player().currentTime() }) 41 return decorateVideoLink({ url, startTime: this.player().currentTime() })
45 } 42 }