Add ability to disable peertube link in embed
This commit is contained in:
parent
7c87bce471
commit
08d9ba0f85
|
@ -35,6 +35,7 @@ export class PeerTubeEmbed {
|
||||||
|
|
||||||
title: boolean
|
title: boolean
|
||||||
warningTitle: boolean
|
warningTitle: boolean
|
||||||
|
peertubeLink: boolean
|
||||||
bigPlayBackgroundColor: string
|
bigPlayBackgroundColor: string
|
||||||
foregroundColor: string
|
foregroundColor: string
|
||||||
|
|
||||||
|
@ -134,6 +135,7 @@ export class PeerTubeEmbed {
|
||||||
this.title = this.getParamToggle(params, 'title', true)
|
this.title = this.getParamToggle(params, 'title', true)
|
||||||
this.enableApi = this.getParamToggle(params, 'api', this.enableApi)
|
this.enableApi = this.getParamToggle(params, 'api', this.enableApi)
|
||||||
this.warningTitle = this.getParamToggle(params, 'warningTitle', true)
|
this.warningTitle = this.getParamToggle(params, 'warningTitle', true)
|
||||||
|
this.peertubeLink = this.getParamToggle(params, 'peertubeLink', true)
|
||||||
|
|
||||||
this.scope = this.getParamString(params, 'scope', this.scope)
|
this.scope = this.getParamString(params, 'scope', this.scope)
|
||||||
this.subtitle = this.getParamString(params, 'subtitle')
|
this.subtitle = this.getParamString(params, 'subtitle')
|
||||||
|
@ -209,7 +211,7 @@ export class PeerTubeEmbed {
|
||||||
|
|
||||||
videoDuration: videoInfo.duration,
|
videoDuration: videoInfo.duration,
|
||||||
enableHotkeys: true,
|
enableHotkeys: true,
|
||||||
peertubeLink: true,
|
peertubeLink: this.peertubeLink,
|
||||||
poster: window.location.origin + videoInfo.previewPath,
|
poster: window.location.origin + videoInfo.previewPath,
|
||||||
theaterButton: false,
|
theaterButton: false,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue