FIX: Add `rel=0` to youtube lazy videos url (#24173)

This commit is contained in:
Jan Cernik 2023-10-31 08:04:23 -03:00 committed by GitHub
parent 32716f3746
commit 4ef3066af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ export default class LazyVideo extends Component {
get iframeSrc() {
switch (this.args.providerName) {
case "youtube":
let url = `https://www.youtube.com/embed/${this.args.videoId}?autoplay=1`;
let url = `https://www.youtube.com/embed/${this.args.videoId}?autoplay=1&rel=0`;
if (this.args.startTime) {
url += `&start=${this.convertToSeconds(this.args.startTime)}`;
}