Send Camera Video Using Flash Socket?
Jun 2, 2011this is my flash as3 code :
var cam:Camera;
cam= Camera.getCamera();
var video:Video=new Video(200,200);
[code].....
this is my flash as3 code :
var cam:Camera;
cam= Camera.getCamera();
var video:Video=new Video(200,200);
[code].....
So far the solution I found requires a crossdomain.xml to work,but this is not available on an IP camera:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()">
[code]....
When I send number (int)52 s.Send(BitConverter.GetBytes((int)872415232));, flash show me trace(socket.readInt()); 872415232 If i send 872415232, flash show 52.Why? And how it fix?
View 1 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'v been looking and below is my code.
import flash.net.Socket;
var mySocket = new Socket
mySocket.connect("127.0.0.1", 5331)
var sym:SimpleButton;
sym.addEventListener(MouseEvent.MOUSE_DOWN, symbtn);
function symbtn(event:MouseEvent):void {
mySocket.writeUTFBytes(1);
}
What should I look for when buying a video camera to record videos that could be used with Flacs?
View 1 RepliesI have this simple code to access the webcam:[code]The quality of the video is extremely bad, with big compression fragments.I am using a built-in webcam as test, so I don't expect too much. But what I see is not normal for my webcam.So how do I set the quality of the video?I cannot see any difference in quality if I remove the setQuality call.
View 1 RepliesOk so I can send and receive XML nodes from the socket server I need to know how to take the nodes and the values within them.... like for example I want the X Y positions from the node sent to me from the server "<playerpos name="javageek1212" X="34" Y="23" />" Basically I want the values from within that node ok?
View 5 RepliesI had an flv recording from a webcam.It mostly recorded fine, but there's one point where I paused the broadcast for an intermission.A few minutes later the broadcast started again but the video doesn't play beyond that point, only audio plays.A few minutes later in the recording the broadcast switched to another camera and the video starts playing again just fine from there.I can't seek past the frozen point either to skip a couple of seconds ahead.The freeze is at about 9:00.If I seek to 9:01 it jumps ahead 8 minutes to where the camera switches.What's strange in this is that the video is *definitely* in the file.Using Moyea's FLV Editor Pro I converted the FLV to an MPEG and the whole video is there, so it's not that the camera stopped transmitting, it's just that the playback isn't working.
View 2 Repliesi want to know how to send data using the AMF format from my flex AIR project to a socket written in Java. I am getting CorruptedStreamException when sending data using writeUTFBytes() methods. Has anyone experienced similar problems? Also can AMF be used only if i am using LCDS only?
private SimpleServer(int port)
{
System.out.println(">> Starting SimpleServer on port " + port);
[code].....
Does flash provide an api to deal with remote stream like IP camera does?
View 2 RepliesI am looking to broadcast live video and need a camera that is better than a simple webcam. It looks like they used to make video cameras that would register as webcams, but stopped making them.If you wanted to broadcast an event live, what would be a good camera to use?
View 5 RepliesI'm looking for a way to stream video from the desktop to an FMS installation. I know that in ActionScript, it's possible to do:
netStream.attachCamera(camera);
netStream.attachAudio(mic);
but not:
[code].....
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?)
How does the url of FMS real time video stream look like?
View 1 RepliesWhen the user clicks on the video once its ended id like it to pop up a window with a new url in it - how can i do this in jw player?
View 1 RepliesHow i can use IP Camera with FMS for live video streaming.
View 2 RepliesI'm working on a small school project, and I'm grabbing video from my webcam like this:
camera = Camera.getCamera();
if (camera == null) {
Security.showSettings(SecurityPanel.CAMERA);
} else {
camera.setMode(960, 600, 30, true);
camera.setQuality(0, 100);
outgoingVideo = new Video();
[Code] .....
And I would like to now send this video to a server I am connected to using an XMLSocket. Is this possible?
will i be able to send a video what i'am receiving form fms B to another fms A in a flash app?And how?
View 4 RepliesI need to record video from webcam in Flash and send it to Youtube using Api.I cant use server and all process must be in client side.
View 7 RepliesI'm using NetStream class to create p2p video conferension. Is it possible to add overlay pictures or animation into video captured from webcam and then send reencoded stream to other user?
View 2 RepliesI'm trying to send a video stream to a Red5 server using Flex.
My Red5 setup seems to work for remote method invocations and shared objects, but I've yet to succeed in getting video working.
This is the AS3 code that connects to Red5:
# connect to RTMP server
netConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
netConnection.connect("rtmp://localhost/context_name");
# omitted code for waiting for connection success, and setting up shared
[Code].....
As said, note that the Red5 setup works flawlessly for remote method invocations and shared objects, but not for video which is strange.
Everyone knows that recording a video with the user's webcam is possible with flash in the browser - but all the solutions I found until now involve a rmtp server that accepts a stream from the flash app. Is there a way to use webcam recording without such an extra media server?
The usecase I want to implement is the following:
Show the user the output of his webcam on the screen. The user can hit a record button which will trigger the flash app to record 5 seconds of video material. The recorded video should be sent to the server as .flv file where it can be processed later.
Since the video will only be a few seconds long the amount of data is not a problem. But my actual question is: Is this somehow technically possible to do in Flash?
I'm now saving the snapshot this way:
vidBmpHolder.draw(main.media.videoLocal);
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(vidBmpHolder);
[code].....
I need to record video from webcam in Flash and send it to Youtube using Api. I cant use server and all process must be in client side.
View 1 RepliesI am trying to run a very fast camera feed. I have the fps set to 60 on the camera and I am adjusting the movie framerate to that after camera becomes active.
However, when I print out individual frames, the bitmaps seem to be the same for a bout 2-3 iterations,meaning that in the enterframe, the camera doesnt seem to have updated the video output.
Anyone on how I could make sure it refreshes the video display quicker?
I just came across the new stageVideo, as I am not very Savvy using AIR i was wondering if i could use the camera video (getCamera)on the stagevideo, and how to implement it?
View 1 RepliesHow to stream video over Socket Class (or XMLSocket) IN as3?
View 1 RepliesHow do I clean up after I've finished using the Camera object and Video Object?
Do I just write:
_cameraInstance = null;
_videoInstance = null;
I want to implement an flex application using actionscript 3: with the camera and the virture buttons(like a image) in the camera, one can move his hand to pass over the virture button field in order to fire the button. Now my solution is following this way: capture the button field in every frame to get a bitmapdata, and calculate the gray-scale summation of the bitmapdata, if the difference between the two frames is greater than a given value, then fire the button. Actually, it could work, but it is very sensible to the lighting condition of the background, worse, when there are more than one buttons, people often fire the button by mistake.
View 2 Replies