# Enabling audio on video recording

**URL:** <https://forum.8thwall.com/t/enabling-audio-on-video-recording/1354>\
**Category:** Technical Support\
**Tags:** general\
**Created:** [May 12, 2024, 4:46pm UTC](https://forum.8thwall.com/t/enabling-audio-on-video-recording/1354 "2024-05-12T16:46:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jose\_burga](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jose\_burga](https://forum.8thwall.com/u/jose_burga)\
**Post date:** [May 12, 2024, 4:46pm UTC](https://forum.8thwall.com/t/enabling-audio-on-video-recording/1354/1 "2024-05-12T16:46:23Z")

</div>

Hi theree!

So im using 8ThWall video recording function within the XR8.MediaRecorder. Now i need to have also the audio recorded, when the user is recording a video.

Because im using PlayCanvas and found no reference, i could not bring this to work. I used:

```auto
const pcAudioContext = this.app.systems.sound.context;

XR8.MediaRecorder.configure({
      maxDurationMs: 15000,
      enableEndCard: false,
      requestMic: XR8.MediaRecorder.RequestMicOptions.MANUAL,
      audioContext: pcAudioContext,
  });

```

I just need to record the ingame audio, no microphone. Now im not sure what parameters i need to make this work, because my snippet above doesnt work.

I tried to orientate on the 8thwall docs: [XR8.MediaRecorder.configure() | 8th Wall](https://www.8thwall.com/docs/api/mediarecorder/configure/) but the excample doesnt inlcude a straight idea about how to achieve this for PlayCanvas in my opinion.

For excample do i also have to use the “configureAudioOutput: userConfiguredAudioOutput” parameter? All those setup inside the function is a bit difficult to understand in the context of PlayCanvas - talking about this const:

```auto
const userConfiguredAudioOutput = ({microphoneInput, audioProcessor}) => {
  const myCustomAudioGraph = ...
  myCustomAudioSource.connect(myCustomAudioGraph)
  microphoneInput.connect(myCustomAudioGraph)

  // Connect audio graph end node to hardware.
  myCustomAudioGraph.connect(microphoneInput.context.destination)

  // Audio graph will be automatically connected to processor.
  return myCustomAudioGraph
}

```

Overall i thought the audioContext should be enough to also record sound, depending on the parameter description.

Any help & input would be great - i would have to bring this to work asap - thanks in advance!

Best regards!

---

_[View the full topic](https://forum.8thwall.com/t/enabling-audio-on-video-recording/1354)._
