Playing video in homepage

I would like someone to help me achieve this:

Put an intro video in that area of ​​the homepage.

Where is the autumn image, there would be the video playing.

I have the video as file:

https://forosmx.s3-us-west-2.amazonaws.com/Coronaci%C3%B3n+vanessa.mp4
1 Like

You can try it out but for now have not dealt with how it shows the homepage or topic.

discourse-homepage-video.zip (1.2 KB)

2 Likes

Thank you very much, the code works fine.

But, I think I did not know how to explain it correctly, my forum is private and I want to place the video only on the login page, before accessing the forum.

2 Likes

I don’t know if the login page url will look like: / login or /

If only for people who are not logged in and the login page will change by:

  • data-template-name="/connectors/login-before-modal-body/homepageVideo"
  • user = api.getCurrentUser()

discourse-homepage-video.zip (1.2 KB)