# Playing video in homepage

**URL:** <https://meta.discourse.org/t/playing-video-in-homepage/164675>\
**Category:** Product Support\
**Created:** [September 21, 2020, 1:45am UTC](https://meta.discourse.org/t/playing-video-in-homepage/164675 "2020-09-21T01:45:43Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[PaulinaMX](/t/-/164675/1) seeks assistance in embedding an intro video on the homepage, replacing the default autumn image. [Bcat](/t/-/164675/2) provides a plugin archive to achieve this, noting it works but may have display issues on topics. [PaulinaMX](/t/-/164675/3) clarifies that her forum is private and she actually wants the video on the login page, visible only before users access the forum. [Bcat](/t/-/164675/4) acknowledges the change in requirements, suggesting the URL might be `/login` or `/`, and provides an updated plugin. This version targets the login page for non-logged-in users by modifying the `login-before-modal-body` template and checking the current user status.

<div class="post-metadata">

**Author:** ![PaulinaMX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulinamx/32/210473_2.png) [@PaulinaMX](https://meta.discourse.org/u/PaulinaMX)\
**Post date:** [September 21, 2020, 1:45am UTC](https://meta.discourse.org/t/playing-video-in-homepage/164675/1 "2020-09-21T01:45:43Z")

</div>

I would like someone to help me achieve this:

 ![Home page video](https://global.discourse-cdn.com/meta/original/3X/9/f/9ff750c3eddd75e29e5e25498d3ac7226614c2f0.jpeg)

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

```

---

<div class="post-metadata">

**Author:** ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)\
**Post date:** [September 21, 2020, 9:00am UTC](https://meta.discourse.org/t/playing-video-in-homepage/164675/2 "2020-09-21T09:00:27Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/a/4/a400f69cd0fa1d97d21d5e651fed5734ea2471d7.jpeg)

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

[discourse-homepage-video.zip](https://meta.discourse.org/uploads/short-url/g6PsjS4xnxG9SR7pFtCiQuIp4A8.zip) (1.2 KB)

---

<div class="post-metadata">

**Author:** ![PaulinaMX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulinamx/32/210473_2.png) [@PaulinaMX](https://meta.discourse.org/u/PaulinaMX)\
**Post date:** [September 21, 2020, 8:16pm UTC](https://meta.discourse.org/t/playing-video-in-homepage/164675/3 "2020-09-21T20:16:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)\
**Post date:** [September 22, 2020, 1:45am UTC](https://meta.discourse.org/t/playing-video-in-homepage/164675/4 "2020-09-22T01:45:45Z")

</div>

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](https://meta.discourse.org/uploads/short-url/1snSJLOTmq32yHfWA0kNUJfsXyt.zip) (1.2 KB)
