Is it possible to run camera stream with Feathers VideoPlayer?
Web/mobile camera and Feathers VideoPalyer(7 posts) (2 voices)
If you want to access the camera, you don't need VideoPlayer. Just use Starling's Texture.fromCamera().
Please don't forget that Flash Player does not currently support video textures. It's only available in AIR.
Nice, it works. But how can I stop draw to texture and stop the camera since there isn't method on flash Camera class?
I haven't used the camera in Starling yet, so I'm not sure. You may be able to simply call dispose() on the texture to stop the camera.
I tried. I can stop camera with: camera.setLoopback(true);. But camera light still lights. Even if I call:
The documentation for the attachCamera() method on VideoTexture says this is how you stop showing the camera:
To drop the connection to the VideoTexture object, set the value of the theCamera parameter to null.
You can access the VideoTexture from the Starling Texture using the base property. With that in mind, I think you can stop the camera like this:
You're in right. That is solution. Thanks, Josh.
You must log in to post.