# Is it possible to use a wide-angle camera on a device?

**URL:** <https://forum.8thwall.com/t/is-it-possible-to-use-a-wide-angle-camera-on-a-device/4410>\
**Category:** Technical Support\
**Tags:** FAQ, general\
**Created:** [January 6, 2025, 4:34pm UTC](https://forum.8thwall.com/t/is-it-possible-to-use-a-wide-angle-camera-on-a-device/4410 "2025-01-06T16:34:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuki\_Tanabe](https://avatars.discourse-cdn.com/v4/letter/y/e19adc/32.png) [@Yuki\_Tanabe](https://forum.8thwall.com/u/Yuki_Tanabe)\
**Post date:** [January 6, 2025, 4:34pm UTC](https://forum.8thwall.com/t/is-it-possible-to-use-a-wide-angle-camera-on-a-device/4410/1 "2025-01-06T16:34:10Z")

</div>

Is it possible to access the device’s camera and launch 8thwall using a wide-angle camera?  
I’m referring to the physical camera on the device, not adjusting the field of view (FOV) of the virtual camera in three.js.

I suspect this might be more of a limitation on the web browser rather than 8thwall itself, but I came across the following article:  
[Camera pan, tilt, and zoom](https://web.dev/articles/camera-pan-tilt-zoom?hl=ja)

If there is a way to access `navigator.mediaDevices.getUserMedia` in 8thwall, I’d appreciate any guidance.

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [January 6, 2025, 4:50pm UTC](https://forum.8thwall.com/t/is-it-possible-to-use-a-wide-angle-camera-on-a-device/4410/2 "2025-01-06T16:50:35Z")

</div>

Hi!

Great question! While switching specifically to the wide-angle camera isn’t built into our XR8 engine, I’ve forwarded your request to our engineering team for consideration.

You can definitely use getUserMedia since 8th Wall experiences are client-side web pages at their core. However, you might find better results with something like a CameraPipelineModule:

> **[CameraPipelineModule | 8th Wall](https://www.8thwall.com/docs/api/camerapipelinemodule/)**
>
> 8th Wall camera applications are built using a camera pipeline module framework. Applications install modules which then control the behavior of the application at runtime.

I haven’t tested this approach myself, so I can’t guarantee it’s the best solution, but it seems like a good direction to explore until this feature is added to the engine.

---

<div class="post-metadata">

**Author:** ![Yuki\_Tanabe](https://avatars.discourse-cdn.com/v4/letter/y/e19adc/32.png) [@Yuki\_Tanabe](https://forum.8thwall.com/u/Yuki_Tanabe)\
**Post date:** [January 7, 2025, 8:30am UTC](https://forum.8thwall.com/t/is-it-possible-to-use-a-wide-angle-camera-on-a-device/4410/3 "2025-01-07T08:30:19Z")

</div>

Thank you for your response!  
After testing various approaches, I was able to achieve it with the code below.

```auto
    XR8.addCameraPipelineModule({
      name: 'camerastartupmodule',
      onAttach: ({ stream }) => {
        const [videoTrack] = stream.getVideoTracks();
        const capabilities = videoTrack.getCapabilities();
        capabilities.zoom &&
          videoTrack.applyConstraints({
            advanced: [{ zoom: 0.5 }]
          });
      }
    });

```

While testing is still ongoing, the SLAM seems to be working accurately so far.  
That said, it would be great if this could be easily configured within 8thwall!

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [January 7, 2025, 4:38pm UTC](https://forum.8thwall.com/t/is-it-possible-to-use-a-wide-angle-camera-on-a-device/4410/4 "2025-01-07T16:38:31Z")

</div>

Awesome! I’ll forward this to our engineering team. 🙂

---

<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:** [January 11, 2025, 4:39pm UTC](https://forum.8thwall.com/t/is-it-possible-to-use-a-wide-angle-camera-on-a-device/4410/5 "2025-01-11T16:39:28Z")

</div>

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