X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fvideo%2Fembed.component.ts;h=43e3501978c18576c5bb4f3614763a334bec0be2;hb=d12b40fb96d56786a96c06a621f3d8e0a0d24f4a;hp=4732efa443231c96cfd35418109deb19df49ca5c;hpb=33f6dce136ca6e969fe374efa099bee3f2a3599d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-main/video/embed.component.ts b/client/src/app/shared/shared-main/video/embed.component.ts index 4732efa44..43e350197 100644 --- a/client/src/app/shared/shared-main/video/embed.component.ts +++ b/client/src/app/shared/shared-main/video/embed.component.ts @@ -1,7 +1,7 @@ -import { buildVideoOrPlaylistEmbed } from 'src/assets/player/utils' import { environment } from 'src/environments/environment' import { Component, Input, OnInit } from '@angular/core' import { DomSanitizer, SafeHtml } from '@angular/platform-browser' +import { buildVideoOrPlaylistEmbed } from '@root-helpers/video' import { buildVideoEmbedLink, decorateVideoLink } from '@shared/core-utils' import { Video } from '@shared/models' @@ -20,15 +20,15 @@ export class EmbedComponent implements OnInit { } ngOnInit () { - const html = buildVideoOrPlaylistEmbed( - decorateVideoLink({ + const html = buildVideoOrPlaylistEmbed({ + embedUrl: decorateVideoLink({ url: buildVideoEmbedLink(this.video, environment.originServerUrl), title: false, warningTitle: false }), - this.video.name - ) + embedTitle: this.video.name + }) this.embedHTML = this.sanitizer.bypassSecurityTrustHtml(html) }