const options = this.getVideoOptions(this.video.embedUrl)
const embedUrl = buildVideoLink(options)
- return buildVideoOrPlaylistEmbed(embedUrl)
+ return buildVideoOrPlaylistEmbed(embedUrl, this.video.name)
}
getPlaylistIframeCode () {
const options = this.getPlaylistOptions(this.playlist.embedUrl)
const embedUrl = buildPlaylistLink(options)
- return buildVideoOrPlaylistEmbed(embedUrl)
+ return buildVideoOrPlaylistEmbed(embedUrl, this.playlist.displayName)
}
getVideoUrl () {
let baseUrl = this.customizations.originUrl ? this.video.originInstanceUrl : window.location.origin
- baseUrl += '/videos/watch/' + this.video.uuid
+ baseUrl += '/w/' + this.video.uuid
const options = this.getVideoOptions(baseUrl)
return buildVideoLink(options)
}
getPlaylistUrl () {
- const base = window.location.origin + '/videos/watch/playlist/' + this.playlist.uuid
+ const base = window.location.origin + '/w/p/' + this.playlist.uuid
if (!this.includeVideoInPlaylist) return base