Rich Rodecker’s blog on flash, flex, actionscript, javascript, and php, with a dash of randomness
Issues with AS3′s Camera.getCamera() and Video.clear()
Ran into a couple of issues relating to video yesterday. Â First, in the docs for the Camera class, it says getCamera() can accept a ‘name’ parameter specifying which camera driver to use. Â As far as I can tell, this is not the case. Â You need to use the camera name’s index of it’s position in the Camera.names array, and you need to pass the index as a string:
Camera.getCamera('2');Â
Also, it appears that Video.clear() does not really work, at least it didn’t for me. Â It simply clears what looks like a single pixel in the top-left corner of the video object that the webcam was attached to. Â I’m guessing at this point that it probably only works with flv’s that were streaming in, and not video from an input source.Â
| Print article | This entry was posted by rich on November 29, 2007 at 10:51 am, and is filed under flash. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 2 years ago
Yes, I’ve noticed the same problem. Just 1 pixel in the top left corner is cleared. And I could not find anyone mentioning it, you are the first.
about 2 years ago
Please vote for and track this bug at:
https://bugs.adobe.com/jira/browse/ASC-3115
about 2 years ago
I just opened a new ticket duplicating ASC-3115: it isn’t resolved despite their flagging it as such, and I’m sure that they’ll just ignore it if it gets commented.
Here’s hoping they’ll actually bother to fix it this time.