# Unhandled promise rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possile because the user denied permission

**URL:** <https://forum.8thwall.com/t/unhandled-promise-rejection-notallowederror-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possile-because-the-user-denied-permission/1660>\
**Category:** Technical Support\
**Tags:** image-targets\
**Created:** [June 15, 2024, 4:47pm UTC](https://forum.8thwall.com/t/unhandled-promise-rejection-notallowederror-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possile-because-the-user-denied-permission/1660 "2024-06-15T16:47:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julie\_Ann\_Rapada](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@Julie\_Ann\_Rapada](https://forum.8thwall.com/u/Julie_Ann_Rapada)\
**Post date:** [June 15, 2024, 4:47pm UTC](https://forum.8thwall.com/t/unhandled-promise-rejection-notallowederror-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possile-because-the-user-denied-permission/1660/1 "2024-06-15T16:47:28Z")

</div>

![Screenshot 2024-06-11 084116](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/1X/f4f1b1effb1ba4ed35458428aa25fb067990e764.png)

Has anyone encountered these errors? My project involves image targets, and the last two videos added to the project have issues. When scanning the photo, one video just shows a white screen, while the other video appears paused. Both videos are only 12 seconds long. Additionally, my plan is only for the starter.

---

<div class="post-metadata">

**Author:** ![Evan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/evan/32/431_2.png) [@Evan](https://forum.8thwall.com/u/Evan)\
**Post date:** [June 17, 2024, 6:22am UTC](https://forum.8thwall.com/t/unhandled-promise-rejection-notallowederror-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possile-because-the-user-denied-permission/1660/2 "2024-06-17T06:22:44Z")

</div>

Do the videos have audio? Is your device on low power mode?

---

<div class="post-metadata">

**Author:** ![Julie\_Ann\_Rapada](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@Julie\_Ann\_Rapada](https://forum.8thwall.com/u/Julie_Ann_Rapada)\
**Post date:** [June 17, 2024, 6:12pm UTC](https://forum.8thwall.com/t/unhandled-promise-rejection-notallowederror-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possile-because-the-user-denied-permission/1660/3 "2024-06-17T18:12:02Z")

</div>

Yes it has an audio. I’m not sure on the device low power mode because this is my first time using the 8th wall platform.

---

<div class="post-metadata">

**Author:** ![Evan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/evan/32/431_2.png) [@Evan](https://forum.8thwall.com/u/Evan)\
**Post date:** [June 24, 2024, 10:05pm UTC](https://forum.8thwall.com/t/unhandled-promise-rejection-notallowederror-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possile-because-the-user-denied-permission/1660/4 "2024-06-24T22:05:15Z")

</div>

To play a video with sound on iOS, you need to capture a user gesture (such as a tap) before playing the video. We’ve built a helper primitive for image targets called `<xrextras-target-video-sound>` (documented [here](https://github.com/8thwall/web/tree/master/xrextras/src/aframe#xrextras-play-video)) to help with this.

See the sample project here:

> **[Image Target Video With Sound | 8th Wall Playground | 8th Wall](https://www.8thwall.com/playground/image-target-video-sound)**
>
> Image Target Video With Sound by 8th Wall Playground

Specifically, you will be interested in [lines 33-41](https://www.8thwall.com/playground/image-target-video-sound/code/body.html#L33) of `body.html`.

---

<div class="post-metadata">

**Author:** ![Julie\_Ann\_Rapada](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@Julie\_Ann\_Rapada](https://forum.8thwall.com/u/Julie_Ann_Rapada)\
**Post date:** [June 30, 2024, 4:02pm UTC](https://forum.8thwall.com/t/unhandled-promise-rejection-notallowederror-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possile-because-the-user-denied-permission/1660/5 "2024-06-30T16:02:40Z")

</div>

It’s working now. Thank you so much! Is there any way that the video automatically play? doesn’t need to tap on the image?

---

<div class="post-metadata">

**Author:** ![Evan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/evan/32/431_2.png) [@Evan](https://forum.8thwall.com/u/Evan)\
**Post date:** [July 1, 2024, 6:46pm UTC](https://forum.8thwall.com/t/unhandled-promise-rejection-notallowederror-the-request-is-not-allowed-by-the-user-agent-or-the-platform-in-the-current-context-possile-because-the-user-denied-permission/1660/6 "2024-07-01T18:46:37Z")

</div>

The only way video can autoplay on iOS is if it is muted - the user needs to tap to play any video with audio.
