const Button = videojs.getComponent('Button')
class PeerTubeLinkButton extends Button {
- private shortUUID: string
constructor (player: videojs.Player, options?: PeerTubeLinkButtonOptions) {
super(player, options as any)
-
- this.shortUUID = options.shortUUID
}
createEl () {
}
private buildLink () {
- const url = buildVideoLink({ shortUUID: this.shortUUID })
+ const url = buildVideoLink({ shortUUID: (this.options_ as PeerTubeLinkButtonOptions).shortUUID })
return decorateVideoLink({ url, startTime: this.player().currentTime() })
}