FIX: Add `rel=0` to youtube lazy videos url (#24173)
This commit is contained in:
parent
32716f3746
commit
4ef3066af5
|
@ -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)}`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue