# Initial video play promise rejects in Chrome

**URL:** <https://forum.babylonjs.com/t/initial-video-play-promise-rejects-in-chrome/1124>\
**Category:** Bugs\
**Created:** [February 1, 2019, 4:51pm UTC](https://forum.babylonjs.com/t/initial-video-play-promise-rejects-in-chrome/1124 "2019-02-01T16:51:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lump](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lump/32/594_2.png) [@Lump](https://forum.babylonjs.com/u/Lump)\
**Post date:** [February 1, 2019, 4:51pm UTC](https://forum.babylonjs.com/t/initial-video-play-promise-rejects-in-chrome/1124/1 "2019-02-01T16:51:30Z")

</div>

When loading a scene with a video texture, a `video.play()` promise is rejected in Chrome due to their policy on autoplay (autoplay is false). From what I can tell the play request is to get the first frame of the video and apply it to the texture.

The scene being loaded is from a link. When the link is clicked from a page on the same domain, the video loads as normal, but when the link is pasted to a new tab the promise is rejected.  
I have tried making the video muted by default (Chrome’s policy allows for muted autoplay), but it looks as though the play promise is part of the videotexture constructor.

I noticed that the onUserActionRequestedObservable is offered as a workaround. At what point is this to be called in order to prevent this?

_ **EDIT** _  
Updating \_createInternalTexture to set the video as muted before `var playing = _this.video.play()`, and then unmuting when the video is paused within this function prevents the promise rejection.

---

<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:** [February 1, 2019, 6:34pm UTC](https://forum.babylonjs.com/t/initial-video-play-promise-rejects-in-chrome/1124/2 "2019-02-01T18:34:22Z")

</div>

I will look into it but it sounds like a good idea.

---

<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:** [February 1, 2019, 6:49pm UTC](https://forum.babylonjs.com/t/initial-video-play-promise-rejects-in-chrome/1124/3 "2019-02-01T18:49:25Z")

</div>

I pushed the fix, It will be in the next version,
