Nash
December 11, 2024, 4:02am
1
Godot Version
4.3
Question
I’m planning to create a game where the background is your Android’s phones camera live feed, is there a way to do this?
I saw that you can toggle the “ask permission to use the camera” in the export section but I don’t know how you can access the said camera.
1 Like
Here is a starting point. I don’t know much about it.
It only seems to work with iOS.
1 Like
Nash
December 11, 2024, 5:15am
3
Yeah I already saw that but couldn’t find anything when it comes to android.
My hope is that in the next update they will add a camera support.
Unlikely in the next release I don’t see anything on GitHub so I assume no one is working on it.
opened 10:33PM - 28 Feb 21 UTC
enhancement
platform:windows
platform:linuxbsd
platform:web
platform:android
topic:porting
confirmed
**Godot version:**
Any version
**OS/device including version:**
Anything ot… her than ios/osx
**Issue description:**
Godot's [Camera Server](https://docs.godotengine.org/de/stable/classes/class_cameraserver.html) and module only have support for ios and OSX. This means that trying to interact with a webcam on other platforms always fails.
There have been efforts to add support for other platforms, but none of these attempts have ever been successful.
The most promising one (#44498) attempts to add support for Windows using Media Foundation but is currently only compatible with msvc.
**Steps to reproduce:**
Try to use the camera server on any non apple platform
**Minimal reproduction project:**
https://github.com/BastiaanOlij/godot3_test_projects/tree/master/TestCameraServer
**UPDATE:**
There are a couple of different open PRs.
Windows: #49763 (3.x only, but should be easily portable to master)
Linux: #47967 and #53666
there is this plugin for taking snap shots
I’m in the same boat. There is a pull request open created in october this year, so I think there’s more hope for that one rather than the pr from 2021 previously linked. Unfortunately, nothing seem to be going on there either.
godotengine:master
← illuminoo:master
opened 12:48PM - 22 Oct 24 UTC
**Camera feeds**
- I have added camera feed support for Android and Windows.
-… Also improved camera support for MacOS, which should work on iOS as well.
- Instead of one camera feed per device, CameraServer now creates a feed per device/format/size. This way you can easily query CameraServer for the most appropriate feed based on its orientation, data format and size.
- Added example project using shaders to render camera feed.
**MovieWriter**
- Added support for OGV audio/video recording to MovieWriter.
- Tested on MacBook M3 with good results (30 fps with 720p).
___
- *Production edit: This may supersede https://github.com/godotengine/godot/pull/49763.*
samm
December 29, 2024, 4:30pm
6
In the comments of this page of documentation .
Theirs this pull request , so I would assume they’re adding it to Godot 4.4.
Hope this helps .