Open napcat opened 11 years ago
CaptureDevice just gives you a stream of ByteArray data that can be fed to a texture. I'm not sure how to wire that into Starling, but it certainly should be possible.
Looks like in Starling there is a Texture object, and that object has a uploadFromByteArray method on it:
http://forum.starling-framework.org/topic/upload-from-bytearray
Edit: Er, that may not be implemented yet... I'm not sure how you'd do that in Starling then (I don't use Starling, and just assumed there'd be a way to do it).
Is it possible to combine Starling framework with this native extension?
I'm asking this because you use your own implementation of Stage3D to draw the webcam texture (GPUImage). Is there a simple way to implement this with Starling?
Thank you.