Low volume in iOS 17

The volume of my audio in my experience is really low, I am using an iPhone on iOS 17.

2 Likes

iOS 17 has a specific audio bug unrelated to 8th Wall that plays audio through smaller speaker.
To fix this. you will need to request mic permissions on iOS 17 and not all devices (you can put this code in your app.js):

const onxrloaded = () => {
  const device = XR8.XrDevice.deviceEstimate()
  if (device.os === 'iOS' && device.osVersion.slice(0, 2) === '17') {
    console.log('Requesting microphone due to audio isse in iOS 17. See https://bugs.webkit.org/show_bug.cgi?id=262569')
    XR8.addCameraPipelineModule({
      name: 'request-mic',
      requiredPermissions: () => ([XR8.XrPermissions.permissions().MICROPHONE]),
    })
  }
}

window.XR8 ? onxrloaded() : window.addEventListener('xrloaded', onxrloaded)

Another thing to keep in mind is where your audio is located in your scene. Adding audio as a child of the camera makes sure that it is always going to stay at a constant volume instead of being placed in the actual scene.

Please reference the project here: A-Frame: Record Scene Audio with MediaRecorder | 8th Wall Playground | 8th Wall