AFAIK there’s nothing in Godot to play a stream. I use VLC, which I call from Godot. You can pass it params that hide its borders so it looks like part of the app.
thanks, you mean to invoke the VLC program from godot script?
I also want to modify some contents on the webcam video, e.g. draw some virtual objects on it.
Is there a way to still use godot to draw on the webcam video if we opened it using VLC?
hmilab_kevin | 2023-02-01 15:12
Yes, using OS.execute(). Unfortunately, you can’t then put anything over the top of it, as the VLC window will be on top of your Godot app.
The idea is use python to open the webcam on a PC, and stream it as bytes on UDP.
Then on the godot, which runs at another PC or device, use UDP to receive the bytes and reconstruct the imagetexture.