# Something about videotexture

**URL:** <https://forum.babylonjs.com/t/something-about-videotexture/2658>\
**Category:** Questions\
**Created:** [April 18, 2019, 10:29am UTC](https://forum.babylonjs.com/t/something-about-videotexture/2658 "2019-04-18T10:29:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xin26](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/xin26/32/1473_2.png) [@Xin26](https://forum.babylonjs.com/u/Xin26)\
**Post date:** [April 18, 2019, 10:29am UTC](https://forum.babylonjs.com/t/something-about-videotexture/2658/1 "2019-04-18T10:29:38Z")

</div>

I use VideoTexture to make a 360 video as a skybox’s texture,and it is good.But I found that video resolution was reduced,how to improve ?Or what factors affect video resolution. And I want to pause, fast-forward and rewind the video on skybox, how to do ?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 18, 2019, 3:49pm UTC](https://forum.babylonjs.com/t/something-about-videotexture/2658/2 "2019-04-18T15:49:28Z")

</div>

Hey!  
to control your video, you can directly control it using VideoTexture.video API:  
[https://doc.babylonjs.com/api/classes/babylon.videotexture#video](https://doc.babylonjs.com/api/classes/babylon.videotexture#video)

Example here: [https://www.babylonjs-playground.com/#CHQ4T#1](https://www.babylonjs-playground.com/#CHQ4T#1)

For your resolution question, the videoTexture will use your video resolution so it should be something else. Do you want to try to repro the issue in the playground?

---

<div class="post-metadata">

**Author:** ![Galen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/galen/32/539_2.png) [@Galen](https://forum.babylonjs.com/u/Galen)\
**Post date:** [April 18, 2019, 3:56pm UTC](https://forum.babylonjs.com/t/something-about-videotexture/2658/3 "2019-04-18T15:56:10Z")

</div>

There are no functions in the babylon.js library to control video textures as this was already written in standardized HTML. I posted a similar question a few years ago, and learned allot. Here is the archived post:

> **[Syntax for playing and pausing video textures](http://www.html5gamedevs.com/topic/18635-syntax-for-playing-and-pausing-video-textures/)**
>
> Hello, Sorry Ive been out for a month - I doubt anyone missed me. I had to travel to Thailand (my Wife is Thai) for personal family issues which will take me back to Thailand on the 24th. So I had to put my multiuser real time drawing app on hold....

Galen

---

<div class="post-metadata">

**Author:** ![Xin26](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/xin26/32/1473_2.png) [@Xin26](https://forum.babylonjs.com/u/Xin26)\
**Post date:** [April 19, 2019, 12:10am UTC](https://forum.babylonjs.com/t/something-about-videotexture/2658/4 "2019-04-19T00:10:32Z")

</div>

Original video: [https://yoda.blob.core.windows.net/videos/uptale360.mp4](https://yoda.blob.core.windows.net/videos/uptale360.mp4)  
On videotexture: [https://www.babylonjs-playground.com/#SQ5UC1#22](https://www.babylonjs-playground.com/#SQ5UC1#22)  
you can find that the orginal video has a better resolution, and I found that It has nothing to do with the size of the skybox and the distance of camera.

---

<div class="post-metadata">

**Author:** ![Xin26](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/xin26/32/1473_2.png) [@Xin26](https://forum.babylonjs.com/u/Xin26)\
**Post date:** [April 19, 2019, 12:11am UTC](https://forum.babylonjs.com/t/something-about-videotexture/2658/5 "2019-04-19T00:11:06Z")

</div>

thank you 😄😄

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [April 19, 2019, 8:12am UTC](https://forum.babylonjs.com/t/something-about-videotexture/2658/6 "2019-04-19T08:12:26Z")

</div>

Resolutions are the same 🙂

 ![](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/e/e0c4178716b26ae70ac167f132c20030c999b791.jpeg) 

It’s just that covering 360° in HD Video needs a lot of pixels.

By the way I’m wondering, we know that power of two textures are necessary, it is the same logic for video ? Here for example we have 3840\*1920px, does this need to be scaled to 4096\*2048px?

---

<div class="post-metadata">

**Author:** ![Galen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/galen/32/539_2.png) [@Galen](https://forum.babylonjs.com/u/Galen)\
**Post date:** [April 19, 2019, 8:22am UTC](https://forum.babylonjs.com/t/something-about-videotexture/2658/7 "2019-04-19T08:22:43Z")

</div>

Yes, a video texture uses the GPU as any texture. Except far more memory usage. Only match your target resolution. In my opinion, your video is far too large for most devices. I would personally use 1024X1024 in my most high resolution scenes.

Galen
