ActionScript 3.0 :: Capturing Images From Camera In Web Application With Flash?
May 26, 2010
We have requirement of web conferencing in our application.Before that we also need capturing images directly frm camera and stroed into our application.I searched a lot then find that it is possible with flash media and action scripting.with that you access client system.I have never done coding in AS3 before...So donot knw how to go about?Even dnt knw how add it later in our web application.
I'm having trouble with Camera.getCamera() in Flash AS3. If there are multiple camera drivers, it does not necessarily pick the correct one. If the default is the correct, the program works fine; however, if another driver is selected as the default then LED on the webcam does not come on and no video is captured. I can cycle through the available cams and select an arbitrary one. I don't, however, know how to determine if the selected camera is correct. It is not returning null. I considered using camera.currentFPS, but it's not clear when this gets updated. I'm really struggling to determine dynamically which camera will do the trick!
I'm not sure if this is the appropriate place to post this, but I was wandering its possible to build your own Player in Flash? The situation is: I have an external digital camera, and i need to capture its contents and display it in a player/window. This will all be on a local machine. I don't need to record anything, or stream it to other machines..... I just need the player to be able to display what ever the camera is displaying. Kind of like the Live Encoder (input and output views). With that I could hopefuly embed the player into other applications.
I would like to know is it possible to access the flash application object loaded in the default web browser and programatically get a screenshot of the application only.
There is a site with an image gallery that uses Adobe Flash.Is there a way I could capture the images? ( Apart from print screen)Softwares like Orbit do well with .flv videos, but don't work with images.Is there something that will help me getting a direct path to the images?
I am making an application that plays the video stream from the user's local system (both Windows and Mac). I use the Camera.getCamera() method and in turn Camera.names to get a list of camera attached with the system.
Unfortunately, if the camera is already in use by another application, say a desktop application on user's system, the browser is crashed. Is there any way that I can detect if a specific camera from the list of available camera is already in use by any other application?
I am having two flash applications on a same web page. Lets say one is already accessing the camera, then if i click on the second application, it will directly start using the camera. I dont want this. I need to check if any other flash application is already accessing the camera in the same web page. Let me tell you that we cant use Camera.getCamera() and check if the camera==null, this wont work, since the camera is available.
Does anyone know the name of the event that is dispatch by the attachCamera(), i would like to take a picture ones the camera is loaded, i try to execute my code after call attachCamera but it takes the VideoDisplay empty, that's why i would like to know if there is an event triggered after the attachcamera() is complete loeaded.
how can I detect that the camera is already captured by another application My scenario is to check whether the camera is not in use by another application and displays the status to the user
I can check using getcamera()!=null to check if the camera is installed or not but i cannot check whether the camera is in already use by another application and the result is black screen in my application
From a Flash object, I would like to be able to detect the presence of a webcam that the user might grant access to, without actually asking the user whether they want to grant access. This is to streamline a large application that has extra features if a webcam exists — if there is a webcam, the application will present several dialogs that lead up to the normal cam-security prompt, but if the user doesn't have the hardware, I want to skip over them altogether. Requesting access to the cam before those dialogs won't make sense to the user.
It appears not to be possible to call Camera.getCamera() without the security prompt happening. Is there a workaround? (For instance, could I, perhaps, call getCamera in a hidden Flash object and inspect its return value, or does it block until the user acknowledges the security prompt?)
Usually Adobe Flash applications can access any usb-webcam.I have a USB camera for microscopes which understands TWAIN and DirectShow.Is there a possibility to access the video data from this camera with flash?
The situation is, this resize code has always worked for me because I was using local images. I am now using a third party admin which feeds images through an application/octet-stream.
Whereas previously, I was loading the image with the Loader::load method but I am currently using the Loader::loadBytes to load the binary data because I am being fed a stream instead of an image/jpeg.
By switching to the stream, the code now fails to get past this line:
resizedImageData.copyPixels(e.currentTarget.getChildAt(0).bitmapData, cropRect, new Point(0, 0));
I have a grails application using jquery mobile. I am hoping to find some way to access the camera on the devices. I thought about using flash to grab the webcam but that obviously wont work on Apple devices. Does anyone know of a way to do it and keep it all browser based? I am hoping that there is a plugin somewhere or maybe html5 has some magic in there that supports it.
I am capturing camera on flex for android using air 3.1,and found that the camera is only showing the a part of of actual camera video.When i view camera using normal camera application in android galaxy tab, it shows full camera area but when i am capturing the camera in flex its showing only the center area for it.I tried using setMode to set the resolution, but its not of any use.Is there any way to get full camera area captured inside flex using camera.getCamera ?
I have a video capture device on a machine. I have written a windows application to capture the video from this device. While capturing, if i try to broadcast using flash it does not connect. If i'm already broadcasting and then try to capture then my windows application does not get the capture pin of the device. So, flash seems to be taking the capture pin. Is there anyway to broadcast using the preview pin on the device so that i can capture using my application. Or is there way where i can split the capture pin and give one to my app and one to the broadcaster
I have a flex mobile application that I am working on that I am having issues with selecting an image from roll/taking a picture. My application is not tabbed, however one part of it contains a Tabbed View Navigator with tabs across the bottom. Within one of those tabs, I have the ability to upload an image to a webservice that I have created. However, when I select an image or take the picture, it pops back out to the initial splash screen and the application restarts. If I use the component standalone (outside of the tabbed view navigator) it selects the image and uploads without any problem.
I am currently doing Augmented Reality. I got my marker to detect my model but my problem now is how to screen capture the content that is in swf. (As in capture the dae model shown in the comp not from webcam.)
& also i just want to capture the swf window not the whole desktop.I read online, they say its impossible?
Or is it possible to call screen capture function in javascript to flash CS4? (LIke external data)
(Moreover, does anyone know how to detect multiple dae models with different markers?)
I have a movieclip on stage. Its 500x400. It has many children of diffent sizes added to it. How can I capture the area 300x200 of the movieclip from (0,0). Suppose there was a child at (100,100) of width and height 300 then I should be able to see from this child from 100 to 300 and 100 to 200 respectively. The rest of the area is not needed. I should be able to manipulate the captured image later. So I guess I have to capture it as a Bitmap. But how can this thing be done.
I am totally new to Flash and SWF file.I am using Flash professional 8. I have this swf file which plays a flv from URL-xyz.com. This server redirects to the rtmp server and streams the flv from there. I would like to capture this rtmp url in my action script.The _url parameter gives me URL-xyz.com and not the redirected url.Is there any way to capture this redirected url ?
I'm using screen captrue software (camtasia studio 6) to capture a video of my flash animation. But when I capture it, the aniamtion is jerky. My flash animation is set to 30fps and looks great when played, but not when I play back the captured movie.
I have experimented with a few other codecs, including the Techsmith default, cinepak and microsoft video but they are all the same.
Could someone recommend to me a good codec to use that will capture my animation better?
there is some simple way I can capture a screen shot to a jpeg or something similar when running an exe/swf on full screen?Basically I have a car configurator, and at the end I want to capture the final choice of colour/ wheels/ background and maybe name of person to a file.....
In IE, if flash has focus, and receives a keydown event, it does not appear to bubble the event up through the DOM (I can't capture the event by listening on document, however the same listener can capture key events from html siblings, so I know my listener is working).
However, some other plugins on the page (I am looking at you windows media player) still respond to key events that initiate in flash (and I need to prevent that from happening)! It seems that the key event initiated in flash takes the bubble express highway straight to the top (where the top is whatever is above document in the DOM hierarchy). I have tried terminating the events in as3, and tried different wmodes... neither approach works.
I an trying to capture keyboard and mouse events for square area on my UI, represented by Sprite. The mouse capture works, the keyboard capture doesn't work at all:
[code]...
I never see reportKeyDown executed, even though Sprite object has a focus.
I'm using PanZoomComponent in my application. When a user holds down control key with mouse press, I want to show hand tool by making PanZoomComponent object's property childPreventsPan = false; In short at combination of control key and mouse press I want to show Hand tool if not cursor.