ActionScript 3.0 :: Use 2 Webcams At The Same Time?
Apr 23, 2010Is it possible to use 2 webcams at the same time in AS3.
View 1 RepliesIs it possible to use 2 webcams at the same time in AS3.
View 1 RepliesI am developing an AS3 AIR application which aims to use multiple webcams, i have two logitech c615 hooked up on the usb ports, i can get one of the video streams, but i can't seem to be able to access the other cam video, Problem is I just get video from one of the usb webcams, usually the last one i connected.[code]but i never get the other cameras, is this possible?
View 1 RepliesI hav ea problem with recording (or even showing) the video of 2 separate webcams which are the same type, brand etc. Somehow one shows its stream and the other one doesn't.
ActionScript Code:
var widthPos=Math.ceil(Math.sqrt(Camera.names.length));
var heightPos=Math.ceil(Camera.names.length/widthPos);
var tWidth=640/widthPos;
var tHeight=480/widthPos;
[Code]...
who has ever messed around with this part of AS3 I've run into an issue with detecting the resolution of the webcams hooked up to the individual machines.
Now while the documentation on the Camera-class says that camera.height and camera.width are readable properties of that camera and also uses them as a way to find the camera's resolution in the examples, it just doesn't work that way on my end. No matter what webcam and what PC I try to use for this, it always tells me that my webcam has the dimensions of 160x120 pixels.
This is very frustrating to me since it forces me to impose a dialogbox onto the - possibly not too tech-savvy - user where they can chose a resolution that is closest to their webcam's native resolution.
I've looked around for a solution to this and came up totally dry. As IQAndreas approached me regarding this because of a twitteruser asking for the same thing, I'm pretty sure that I'm not the only one having this issue.
I have developed an application on Adobe AIR which helps users take there photographs and store them. What i need to know is that i wanted to use HIGH RESOLUTION cameras as web cam .. Preferably digicams .. So does Flash AIR support using digicams as webcams ?
or what other options do i have ? I want to take very high resolution photographs in Night Mode so i need to use digicams for that ..
[URL]
My webcam works great with Skype and Cheese and it used to work great with a program called FaceFlow but now when i try to use it with FaceFlow i get the following pop-up: Adobe Flash Player can't locate a camera on my computer? I have installed via Synaptic the latest version of Adobe Flash Player which is 11,1,102,63 but without any affect?
Would it be possible to uninstall the present version of Adobe and use an older version in the hope that the webcam will be recognised?"
I did a quick test of FaceFlow the other day ...... I have two webcams for testing, one is an older model and the other a uvc compatible device.
Faceflow would not recognise the older model, only the uvc camera.
Seems you have come across the same problem "
So now Adobe has pulled the plug on Mobile Flash and are pushing more for HTML5, and Silverlight has pulled the plug too, what's next for interactive video content. So if they die out (as they are currently trying to do) how do we access web cams (or even phone cams) on websites. The HTML5 Media Capture looks like it doesn't support streams only Files, so that could be out, is there any alternatives at the moment, or in the near future?
View 1 RepliesI am trying to stream images (single jpg) from webcams into a swf. I know little about actionscript, and what I have so far is from what I have found in other posts around the web. My first attempt worked, but caused a bad white flash between the image being refreshed. So from others I have learned that this will happen unless I use two movie containers and buffer in between them? Here is the code I have, and it does not work.
[Code]...
I don't get any compiler errors. I think this is as2, but I am not sure
I have this clock code and would like to know what needs to be added or changed for it to reference the time off the server and not the local computer time (and preferably reference the server just once and not repeatedly). I already have a file on the server "time.php" that is providing the milliseconds. I know it should be fairly simple, but I just can't wrap my head around it.
[Code],,,
I use CS4.
Code:
package {
import flash.display.Sprite;
import flash.events.Event;[code]...........
Both of these are saved in files with the name same as the classes.
Both are saved a folder which also contains an fla file name hello.fla.So,when test the movie(hello.fla),after choosing the document class as WavyBall,I get these errors: 1046: Type was not found or was not a compile-time constant: Ball.
Source: var Ball:Ball;
1120: Access of undefined property stage.
Source:Ball.x=stage.stageWidth/2;
1120: Access of undefined property stage.
Source:Ball.y=stage.stageHeight/2;
5000: The class 'WavyBall' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.What is wrong?
I have a fairly complex animation movie clip within my main timeline in a Flash file. When you click a button, it plays the movie clip, then goes back out to the main timeline. The first time the movie clip runs, it plays choppy and slow, but if I play it two or more times, it plays correctly (smoothly). Is there some actionscript I need to preload the movie clip, or some other solution to the first-run slowness?
View 2 RepliesI'm testing Live streaming with FMSS. The stream is pushed to FMSS buy Adobe FMLE software. Streaming works fine until I reach 1300-1400 simultaneous connections.No matter what the encoding ratebit is (150kbps or 2000kbps) the stream is no longer play from time to time (5-8 seconds).
The CPU (2xIntel Quad) is loaded less than 20% and memory used is about 2 GB (there is plenty of memory installed 32G). The OS is RedHat 5.3 64bit platform. Network uplink maximum rate is 4Gbps.I disabled the Queue but the problem still persist.
I added in my application universal time, and I gave start and stop time. The process is going smoothly, but if I change my system (local) time, the entire time will be changed. Is there any solution to solve this problem?
[Code]...
I am working on a site that has a clock but it displays in military time, is there a way to change it to regular time. The following is the Action script:
[Code]...
I've loaded a video into the FLVPlayback component and I'm looking for a way to get the total time and the time played so far and output them to two text fields so the end result would look something like "00:12/00:50".
Right now I'm defining the video by the components inspector but I'm eventually hoping to define this bit by actionscript as well.
im making a flash upload thingy for my site, it has options to set the expiry time of the file, each time has a button which needs to be made from an array (which comes forma php script, not really relevent)... here is my code..
ActionScript Code:
if (vars.options == undefined){[code]....
i know the x values are too small but they should still all appear on the stage right ?, only the final item in the array appears...i think i might be replacing the previous one with the new one.
Im using the FLVplayback component for a project im doing. I want to add the time elapsed and time left on the controls (just like how the player on the tutorials on this site works). I dont really want to create my own controls, as im happy with the flv playback component.
View 2 RepliesI was just wondering whether it was possible to perform a function after a period of time.like +2 to hp every 6 seconds.
View 2 Repliesi've a countdown flash and am reading the currentDate from client side ( user clock on windows ). i need to read the time from html for example and save it on var then strat time from it example: HTML Code:
[Code]...
I'm using ActionScript 2 and I already placed the progress bar on the stage assigned it the instance name ProgressBar0 but i'm confused on how to give it a label, have it start at a certain time and end at a certain and show the percentage complete in the label.
View 7 Repliesi have a player in flash action 3. i need to take a the total time of the sound file and current time of the sound file. how can i code like this.
function onPlayProgress(evt:Event):void {
var sndLength:int = Math.ceil(snd.length /(snd.bytesLoaded / snd.bytesTotal));
var seekbar = 100 * (channel.position / sndLength);
[Code].....
I need to add in extra hours to the time, and the day will change automatically too. How should I change the code below?[code]
View 1 Repliesmake a clock base on given time(server time) as title,
View 2 RepliesMy goal is to change the time for setInterval each time the function is called. Planning to replace myInterval = 5000; with a randomized number. My problem is getting setInterval to recognize the myInterval variable from the function.
[Code]...
every login ,flash get server time from php. how can i update time and date in flash..?
View 3 RepliesHow to convert date and time to CDT time Zone in flex4.
View 1 RepliesHow to convert UTC time into date time format in flex. I am using sdk 3.5. for example I have current date time in UTC format as 1309522586000 (milliseconds) and I want to convert it to friday jul 1 2011. How can I do this??
View 1 RepliesIs there a particular reason that when you stream a video your _netStream.time will misreport the elapsed time of the stream? I've tested streaming vs progressive download and discovered that while progressive netStream.time seems spot-on accurate the streaming netStream.time is behind the actual running time of the flv.
In other words, the video has played to completion and stopped, but the seek bar has only progressed 85% of the way through on a stream.
Is this something to do with the sample rate of the video, or some other encoding issue?
i'm trying to build this as3 buttons with labels for the OVER_OUT_CLICK tweens i`ve designed but aparently there is some problem because the button dose not act the same the first time you go over and out as the second time
[Code]...
developing custom video player for my fla files.. i made few flash slides with combination of audio,text,animations, and video files.(for a e learning project).. the player which i made is a blend of few sample tutorials available on online... now my problem is how to display the total movie length of the movie in a dynamic text box using as2..
View 6 Replies