# Youtube video autoplay

**URL:** <https://discourse.nodered.org/t/youtube-video-autoplay/84178>\
**Category:** Dashboard\
**Created:** [1 January 2024 14:11 UTC](https://discourse.nodered.org/t/youtube-video-autoplay/84178 "2024-01-01T14:11:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![druckstick.at](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@druckstick.at](https://discourse.nodered.org/u/druckstick.at)\
**Post date:** [1 January 2024 14:11 UTC](https://discourse.nodered.org/t/youtube-video-autoplay/84178/1 "2024-01-01T14:11:18Z")

</div>

Hello everybody!  
I've been trying to automatically play a YouTube video in the dashboard for some time.  
Here for what I need it, maybe there is another option.  
The whole thing is intended for an entrance hall of seminar rooms.  
A normal television.  
The displays are controlled via a timer node  
The participant list (mySQL database) should be displayed before the seminar.  
During the break the YouTube video.  
After the seminar pictures.  
I have solved the database and the photos.  
The YouTube video itself too, but it doesn't start itself.

I tried with template node and the embed code from YouTube and also added &autostart=1 to the link itself.  
It just doesn't want to start, except as a link, but then I can't get back to the dashboard.

My idea was to generate a mouse click with nbr-keyb-mouse, but I can't get the node to run.

What options are there to start the videos with autoplay or are there other nodes that can generate a mouse click?  
I've been searching for many hours but I only keep finding the same things that don't work. I even created a completely new operating system because I thought that was the reason.

Many thanks in advance

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 January 2024 14:52 UTC](https://discourse.nodered.org/t/youtube-video-autoplay/84178/2 "2024-01-01T14:52:54Z")

</div>

You are, I hope, aware that browsers changed some defaults a while back. Now, autostart of media cannot happen unless there has been a user interaction.

I think that you would need some kind of external automation (an app outside the browser).

---

<div class="post-metadata">

**Author:** ![druckstick.at](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@druckstick.at](https://discourse.nodered.org/u/druckstick.at)\
**Post date:** [1 January 2024 15:04 UTC](https://discourse.nodered.org/t/youtube-video-autoplay/84178/3 "2024-01-01T15:04:08Z")

</div>

I've read that before, so I tried clicking with the mouse, but the node doesn't work either 😔

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [1 January 2024 15:15 UTC](https://discourse.nodered.org/t/youtube-video-autoplay/84178/4 "2024-01-01T15:15:34Z")

</div>

Wasn't it something about autoplay only works if audio is muted??

---

<div class="post-metadata">

**Author:** ![druckstick.at](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@druckstick.at](https://discourse.nodered.org/u/druckstick.at)\
**Post date:** [1 January 2024 15:33 UTC](https://discourse.nodered.org/t/youtube-video-autoplay/84178/5 "2024-01-01T15:33:51Z")

</div>

Even if that were the case, it wouldn't be of much use to me because I need the sound from the videos

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [1 January 2024 17:05 UTC](https://discourse.nodered.org/t/youtube-video-autoplay/84178/6 "2024-01-01T17:05:15Z")

</div>

Once it is running muted you can always unmute and the sound will be heard

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 January 2024 17:05 UTC](https://discourse.nodered.org/t/youtube-video-autoplay/84178/7 "2024-01-31T17:05:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
