videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
107 stars 14 forks source link

External (UVC) cameras not recognised in iPadOS #135

Closed mikeylemmon closed 3 months ago

mikeylemmon commented 4 months ago

iPadOS 17 added support for external cameras using the USB video device class (UVC) — for example on the 2nd-gen iPad Pro I am testing with (iPadOS 17.5.1), apps like FaceTime, Zoom, and Webkit-based browsers all support external cameras and other capture devices (e.g. HDMI capture cards) connected to the USB-C port. Those same devices, however, are not being listed by CameraDevice.Discover() and thus are currently unavailable for use with VideoKit.

olokobayusuf commented 4 months ago

Coming in 0.0.20.

olokobayusuf commented 3 months ago

Implemented in 0.0.20.

tomashined commented 3 months ago

Implemented in 0.0.20.

Hello. Could you provide a guide on how to set up multiple cameras and capture multiple images in Unity?

mikeylemmon commented 3 months ago

I have updated to 0.0.21, but external devices are still not being listed in the output of CameraDevice.Discover() — is there something else I need to do to enable the external cameras to be recognised?

olokobayusuf commented 3 months ago

Hello. Could you provide a guide on how to set up multiple cameras and capture multiple images in Unity?

I'm not sure if this is what you're asking, but simultaneously streaming from multiple cameras is not yet supported. We can add it as a feature on iOS (we've implemented this in the past). Open an issue for a feature request.

olokobayusuf commented 3 months ago

I have updated to 0.0.21, but external devices are still not being listed in the output of CameraDevice.Discover() — is there something else I need to do to enable the external cameras to be recognised?

@mikeylemmon I'm not sure what the issue could be. We followed Apple's docs to implement this feature. Just to confirm: you're testing on iPadOS 17?

tomashined commented 3 months ago

Hello. Could you provide a guide on how to set up multiple cameras and capture multiple images in Unity?

I'm not sure if this is what you're asking, but simultaneously streaming from multiple cameras is not yet supported. We can add it as a feature on iOS (we've implemented this in the past). Open an issue for a feature request.

I thought that this request was specifically about being able to get an image from multiple cameras, as iPadOS has introduced a feature that allows connecting other devices to it and viewing video from multiple cameras.

olokobayusuf commented 3 months ago

I thought that this request was specifically about being able to get an image from multiple cameras, as iPadOS has introduced a feature that allows connecting other devices to it and viewing video from multiple cameras.

This issue was about adding support for discovering and streaming from UVC cameras. For streaming from multiple cameras (e.g. front and back) simultaneously, that's a separate feature.

tomashined commented 3 months ago

I thought that this request was specifically about being able to get an image from multiple cameras, as iPadOS has introduced a feature that allows connecting other devices to it and viewing video from multiple cameras.

This issue was about adding support for discovering and streaming from UVC cameras. For streaming from multiple cameras (e.g. front and back) simultaneously, that's a separate feature.

https://github.com/videokit-ai/videokit/issues/140