godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.07k stars 20.19k forks source link

CameraServer.feeds in iOS returns nothing. #79551

Open vanoak opened 1 year ago

vanoak commented 1 year ago

Godot version

4.1

System information

Godot v4.1.stable - macOS 13.4.1 - Vulkan (Compatibility) - Apple M1 Pro - Apple M1 Pro (10 Threads)

Issue description

Hi,

Hello. Been wanting to port my project from 3.6 to 4.1 but i'm struggling with understanding several sources of information.

  1. My 3.6 project uses the iOS Camera plugin in https://github.com/godotengine/godot-ios-plugins an it works as expected.
  2. From my understanding this plugin I is not being developed to 4.x (https://github.com/godotengine/godot-ios-plugins/issues/47) which is a bummer but not a show stopper because the manual states that CameraServer is available to iOS (https://docs.godotengine.org/en/stable/classes/class_cameraserver.html).
  3. I followed this method (https://www.youtube.com/watch?v=oVyGHeYWYU0) and I was able to get the live feed from the macOS FaceTime Camera;
  4. When I export to iOS, nor the camera authorisation shows up nor the camera feed list returns anything.

What am I doing wrong?

Steps to reproduce

Too many. I am uploading a minimal reproduction project.

Minimal reproduction project

camera_server_clean.zip

kpk-i710 commented 1 year ago

wait, have you tried godot 4 empty project to export for ios work?

m1 air for ios does not work for me, I wanted to do an export such a mistake Can't open file from path 'res://new4.2/Images.xcassets/AppIcon.appiconset/Contents.json'. Can't open file from path 'res://new4.2/Images.xcassets/AppIcon.appiconset/Icon-40.png'

don't know what the problem is?

vanoak commented 1 year ago

Do you want to know if I was able to export a project for iOS? Yes, I was. But I'm using 4.1 stable and apparently you are using 4.2. so can't really help you there.

samgreen commented 12 months ago

I believe you will need the privacy settings in the Info.plist to prompt the camera permissions prompt.

vanoak commented 12 months ago

Are you referring to "Privacy - Camera Usage Description"? entry?