Skip to Content »

FlashApe » Issues with AS3’s Camera.getCamera() and Video.clear()

 Issues with AS3’s Camera.getCamera() and Video.clear()

  • November 29th, 2007
  • 10:51 am

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. 

3 People had this to say...

Gravatar
  • Paolo
  • November 30th, 2007
  • 4:03 am

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.

Gravatar

Please vote for and track this bug at:
https://bugs.adobe.com/jira/browse/ASC-3115

Gravatar
  • Oliver Turner
  • April 29th, 2008
  • 6:42 am

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.

Want your say?

* Required fields. Your e-mail address will not be published on this site


You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>