# In scene audio error

**URL:** <https://forum.8thwall.com/t/in-scene-audio-error/1210>\
**Category:** Technical Support\
**Tags:** image-targets, audio\
**Created:** [April 28, 2024, 4:39pm UTC](https://forum.8thwall.com/t/in-scene-audio-error/1210 "2024-04-28T16:39:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OWLED\_Media](https://avatars.discourse-cdn.com/v4/letter/o/b5e925/32.png) [@OWLED\_Media](https://forum.8thwall.com/u/OWLED_Media)\
**Post date:** [April 28, 2024, 4:39pm UTC](https://forum.8thwall.com/t/in-scene-audio-error/1210/1 "2024-04-28T16:39:47Z")

</div>

Hey Everyone,  
I have an audio being played in the experience and also have capture button to capture the video of the whole experience.  
But the problem is, the added audio(.mp3) is not being played in the recorded(captured) video despite of adding “ **include-scene-audio=“true”** ” in the code.  
Have added a screenshot for better understanding, please have a look.

 ![Screenshot 2024-04-28 at 10.04.09 PM](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/1X/f5a3a6b7012baa0230dfe534a770bac2cbf67723.png)

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Ian](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/ian/32/430_2.png) [@Ian](https://forum.8thwall.com/u/Ian)\
**Post date:** [April 30, 2024, 6:48pm UTC](https://forum.8thwall.com/t/in-scene-audio-error/1210/2 "2024-04-30T18:48:43Z")

</div>

How are you loading in your .mp3 file?

Just for more information (I know you are using .mp3 over video but thought I’d share this)

Capturing audio in the scene can be tricky, especially when trying to capture audio from a video texture.  
We have a sample project demonstrating how to include scene audio in A-Frame with MediaRecorder, which is done with xrextras-capture-config and . Unfortunately, a video texture is not considered “scene audio”. As a workaround, I suggest following the same approach as the sample project and manually playing the sound via its own entity and muting the video track itself.  
For example:

```auto
<a-scene>
  <a-assets>
    <video id="video" src="./assets/video-sound.mp4" muted></video>
    <audio id="audio" src="./assets/video-sound.mp4"></audio>
  </a-assets>

  <xrextras-capture-config request-mic="manual" ...></xrextras-capture-config>

  <a-camera position="0 1 2">
    <a-entity sound="src: #audio"></a-entity>
  </a-camera>
 
  <a-box material="src: #video"></a-box>
</a-scene>

```

```auto
const playVideo = () => {
  const video = document.getElementById('video')
  const audio = document.querySelector('[sound]')
  audio.components.sound.playSound()
  video.play()
}
window.addEventListener('click', playVideo)

```

You can disable the microphone by adding request-mic=“manual” to the xrextras-capture-config entity: [8th Wall](https://www.8thwall.com/docs/web/#customize-video-recording).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/9/9212a857458f1b03a6accb129e0f8cbea408e3e5.png) [@system](https://forum.8thwall.com/u/system)\
**Post date:** [September 10, 2024, 7:05pm UTC](https://forum.8thwall.com/t/in-scene-audio-error/1210/3 "2024-09-10T19:05:13Z")

</div>

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.
