Actionscript 3 :: Get The ClassID / UUID Of A Camera?
Dec 18, 2010Or how to identify a camera in actionscript 3?
View 1 RepliesOr how to identify a camera in actionscript 3?
View 1 RepliesI'm making a Flash program to be downloadable and unlockable on one computer on receipt of payment. To do this, I was looking to create a UUID for a computer which could be checked to make sure that the program has not been moved to another computer but I don't know of any way to access enough information about the computer to make it uniquely identifiable (or even close).
I have also considered having a separate program written in a different language which would have access to this information but I don't know if I can even run it from Flash.
I always see a classid in tags when I do static publishing using SWFObject, i.e.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
What is this for?? Can I just drop it?
A typical code fragment obtained from the YouTube embed feature looks like this:
<object width="660" height="405">
<param name="movie" value="http://www.youtube.com/v/NWHfY_lvKIQ?fs=1&hl=en_GB&border=1"></param>
[code].....
Recently struggling with weird IE9 + Flash problem I came over multiple advices to use classid and codebase attributes specifically for IE. But couldn't find any explanation of why they might be required or what they simply do. Any good writeup on this topic anywhere? Side-question: Can I just make classid value up out of my head or it should be generated according to some rules?
View 1 RepliesI 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 ?
View 1 RepliesFrom 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?)
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
View 10 RepliesUsually 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?
View 1 RepliesI have a problem with the camera slowing down in my project.I thought it could be because of the complexity and memory consumtion of this work, so I created a completely new movie, typed such code:
quote:
var camera:Camera = Camera.getCamera();
var video = new Video(camera.width, camera.height);
video.attachCamera(camera);
addChild(video);
[code]....
And... this time the camera's fps stayed 25fps all the time. To be honest - I really don't know why :| I mean, I'm happy the fps stayed stabily at the level, but I don't know what to do in the mentioned, complex, project to make the fps faster. I can't just add the trace line.
What should I look for when buying a video camera to record videos that could be used with Flacs?
View 1 RepliesHow to find out whether camera is attached or not in AS3.0. It can be installed or not.
in flashplayer 11,2,202,228, attach camera to video and see local video, sometimes camera movie is freezed when I change Camera.setquality and Camera.setmode. it's not happen older flashplayer. I heard it waste memory in flashplayer 11,2,202,228,
View 2 RepliesIn the following why is that the camera does not show up in the div.Is that am i doing anything wrong here
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="swfobject.js"></script>
[code]....
Is there any other way to access the camera using ActionScript 3 other than
import flash.media.Camera;
videoInstance.attachCamera(cameraInstance);
Or should I use any API s? If so, any API suitable and some tutorials if possible.
I hate when flash does that. standard code that just wont work for some reason.
Code:
var cam:Camera = Camera.getCamera();
var video:Video = new Video(320,240);
video.attachCamera(cam);
video.x = 20;
video.y = 20;
addChild(video);
I am on macbook pro and my camera doesnt show on the stage. I had a video object there named 'video' i also at some point had the imports for Camera and Video, still no luck. What am I doing wrong. I am sure I had this at some point in the past.
I just have a problem when a point goes *behind* the camera: if point.z < 0. It's ok if there's an MC that just becomes invisible - but if I try to draw a line to this point with the drawingAPI, the point's screen x/y coordinates are weird. I can't figure out how to modify the scaleRatio to get correct values. Here's a code snippet:
var scaleRatio = focalLength/(focalLength + z);
screen_x = x * scaleRatio;
screen_y = y * scaleRatio;
How do I stop the webcam from being on?Once getCamera() is invoked and attacked to a video object, how do you remove or stop the webcam later on?
View 3 Repliesis it possible to move the 'camera' around in flash (cs4 as3) as apposed to moving the scene around it?
View 2 Repliesi have a big set for a new animation im doing but i only want to view one part of it at once and have some sort of camera panning effect going round my stage. is there a plug in or somthing for this. i have looked everywere. I know it can be done as i have seen it before
View 1 RepliesI've just been playing around with the 3D tutorials,I just have a problem when a point goes *behind* the camera:if point.z < 0.It's ok if there's an MC that just becomes invisible - but if I try to draw a line to this point with the drawingAPI, the point's screen x/y coordinates are weird. I can't figure out how to modify the scaleRatio to get correct values.
Here's a code snippet:
var scaleRatio = focalLength/(focalLength + z);
screen_x = x * scaleRatio;
screen_y = y * scaleRatio;
im making a platform game project but as of yet im still un able to make the camera move up and down when the charater jumps or stands on a platform?
[Code]...
if you have tried it you know that it is not working. The main thing is that on Android 2.2 the camera allowance dialog is not being displayed when you try to access it from the web browser. I've found something called PhoneGap, but it is not working on the android 2.2, or at least some parts of it is not working. Has anyone any clues how to access the camera from the web browser on Android 2.2?
View 3 RepliesHow i can use IP Camera with FMS for live video streaming.
View 2 RepliesHow to detect camera is in use or not? Adobe says, if Camera.getCamera(); returns null, it means camera not installed, or in use , i use below, then when i start swf, first one is ok, but then i start new instance of app, it throws and error " .... flash 10 r2has stopped" how can i solve that problem...
[Code]...
when i use the connect pro, in the classroom I can't make my web camera running. I alredy install FMS and opened port 1935. what can I do else?
View 11 RepliesI'm looking to create something in style with this (arrow key navigation), and despite being the creator of that flash movie, I've managed to forget the code.
View 1 RepliesFor example: I select camera - "a4tech-pk935" in flash, and then I try to use this camera in Skype, it's locked by flash. I know it. How to unlock camera in AS3 (without unload/closing flash movie)? I tried use Camera.getCamera(null), (it's select default camera)
View 2 RepliesWhen stop streaming, i close NetStream, close NetConnection, clear video, and remove any event listoner on camera. After these actions, the camera is still in used.
View 2 Repliesi am working on a video recording project in ActionScript-2, i want to add a script with my code to detect camera or microphone disconnection. it means if user disconnect camera or microphone in between recording, i want to give him a warning.
View 12 Replies