# Full screen intro video

**URL:** <https://forum.babylonjs.com/t/full-screen-intro-video/11184>\
**Category:** Questions\
**Created:** [May 27, 2020, 12:29pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184 "2020-05-27T12:29:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Escobar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/escobar/32/2726_2.png) [@Escobar](https://forum.babylonjs.com/u/Escobar)\
**Post date:** [May 27, 2020, 12:29pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/1 "2020-05-27T12:29:30Z")

</div>

I’ve seen that great sample [https://www.babylonjs-playground.com/#9FSDC7#13](https://www.babylonjs-playground.com/#9FSDC7#13) about using videotextures but I’m wondering if there is a simpler way to play a video introduction without the need of creating a plane, dealing with the camera FOV and so since I only need to play the video in fullscreen.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 27, 2020, 1:10pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/2 "2020-05-27T13:10:23Z")

</div>

You could potentially use a layer but you would need to ensure a size matching between the canvas and the video.

[https://doc.babylonjs.com/api/classes/babylon.layer](https://doc.babylonjs.com/api/classes/babylon.layer)

---

<div class="post-metadata">

**Author:** ![Escobar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/escobar/32/2726_2.png) [@Escobar](https://forum.babylonjs.com/u/Escobar)\
**Post date:** [May 27, 2020, 7:48pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/3 "2020-05-27T19:48:59Z")

</div>

It seems that Layer requires a url and that url should be an image so you cannot load a video

---

<div class="post-metadata">

**Author:** ![Escobar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/escobar/32/2726_2.png) [@Escobar](https://forum.babylonjs.com/u/Escobar)\
**Post date:** [May 27, 2020, 7:58pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/4 "2020-05-27T19:58:20Z")

</div>

forget about that, I can force the .image property but I didn’t manage to use a plain color yet, setting the color4 to black with 1 alpha it seems to show the original background color yet!

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 27, 2020, 8:06pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/5 "2020-05-27T20:06:33Z")

</div>

You can put a texture in the texture property and leave the url to null.

---

<div class="post-metadata">

**Author:** ![Escobar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/escobar/32/2726_2.png) [@Escobar](https://forum.babylonjs.com/u/Escobar)\
**Post date:** [May 27, 2020, 8:08pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/6 "2020-05-27T20:08:30Z")

</div>

I’ve tried it … [https://www.babylonjs-playground.com/#08A2BS#38](https://www.babylonjs-playground.com/#08A2BS#38) but without luck (I wanted a black background behind the video)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 27, 2020, 8:45pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/7 "2020-05-27T20:45:25Z")

</div>

You can trick it with a raw black texture: [https://www.babylonjs-playground.com/#08A2BS#40](https://www.babylonjs-playground.com/#08A2BS#40)

---

<div class="post-metadata">

**Author:** ![sable](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sable/32/207_2.png) [@sable](https://forum.babylonjs.com/u/sable)\
**Post date:** [May 27, 2020, 9:40pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/8 "2020-05-27T21:40:45Z")

</div>

If all you need is fullscreen video, is there a reason you can’t just use an html element that is positioned to cover the canvas?

---

<div class="post-metadata">

**Author:** ![Escobar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/escobar/32/2726_2.png) [@Escobar](https://forum.babylonjs.com/u/Escobar)\
**Post date:** [May 27, 2020, 9:48pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/9 "2020-05-27T21:48:48Z")

</div>

I’m not sure if it could be easier than using babylon native controls (I need a button to skip the intro)

---

<div class="post-metadata">

**Author:** ![sable](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sable/32/207_2.png) [@sable](https://forum.babylonjs.com/u/sable)\
**Post date:** [May 27, 2020, 10:30pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/10 "2020-05-27T22:30:42Z")

</div>

It’d probably be easier (especially if you want to add any video controls at a later date). You can call any function you like from an event listener on an html button (or any other element for that matter).

---

<div class="post-metadata">

**Author:** ![Escobar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/escobar/32/2726_2.png) [@Escobar](https://forum.babylonjs.com/u/Escobar)\
**Post date:** [May 27, 2020, 10:32pm UTC](https://forum.babylonjs.com/t/full-screen-intro-video/11184/11 "2020-05-27T22:32:11Z")

</div>

I’ll check it but to be honest I don’t have any idea about how to start with it!
