ActionScript 3.0 :: XML Socket - Sending Video To Server

Feb 19, 2010

I'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?

View 1 Replies


Similar Posts:


Actionscript 3 :: Sending Images Via Socket?

Feb 29, 2012

I'm trying to send an image via a socket in as3 between two AIR applications that I made. It works fine with small images, but with the bigger ones, it gives me this error: "Error #2044: Unhandled IOErrorEvent:.text=Error #2124: Loaded file is an unknown type.". It repeats it several times, so I thought that the image might be cut to smaller ones, is that right? And if it is right, how to restore it??

View 1 Replies

ActionScript 3.0 :: Sending Image Through Socket

Jan 15, 2009

I'm loading a small portion (rectangle), of a png file and extracting the ARGB (Alpha, Red, Green, Blue) values of the bitmapdata using C#. I then send this bytearray to the flash player (using sockets). The flash player receives this as a ByteArray. I then use LoadBytes but it gives me the error "unknown file type". I'm guessing that it could be because the data is not png encoded (I don't know how to do it), and loadBytes requires that.

View 6 Replies

Actionscript 3.0 :: Socket Isn't Sending Any Data After The Connect?

Feb 24, 2009

I'm tring to write an instant messager implementation, but i got a problem with the initial socket connection.I need to send a GET request with some parameters to a server and it will reply with a seed number message server IP.

Code: Select allvar socket:Socket = new Socket("appmsg.gadu-gadu.pl", 80);
var response:String = new String;
var request:String = new String;[code]......

why the socket isn't sending any data after the connect,i also wrote a small pop3 client and it works fine.

View 1 Replies

ActionScript 3.0 :: Socket Connection - Sending Data Without Any Errors?

Mar 18, 2009

I use a socket connection to share data between flash and VB. I check the connection in VB and send a message when my flash is connected. My VB tool then sends the data continuesly (about every 40 milliseconds or slower) to flash. Works fine. Now I have to send some data back from flash to VB. I can send the data without any errors in Flash but it never arrives in VB.

View 3 Replies

ActionScript 3.0 :: Flash.net.Socket Sending But Never Receiving Data?

Jul 20, 2011

I'm trying to make a barebones, simple flash client communicate ANYTHING to a server over a regular socket. I setup the listeners:

socket = new Socket();   socket.addEventListener(Event.CLOSE, closed); socket.addEventListener (DataEvent.DATA, onSocketData); socket.addEventListener(Event.CONNECT, connected); socket.addEventListener(

[code].....

View 1 Replies

Actionscript 3 :: Sending '@' (at Sign) Character Socket For FTP Login

Nov 8, 2011

I'm trying to create a FTP Client in AS3.It works well with almost all my ftp hosts, but I'm not able to login in hosts in wich I have an "@" (at commercial) character inside the username.It seems a character encoding error.[code]but I'd never got a 331 response (Username Accepted) from the FTP server.i tried replacing '@' char with '%40' or '+' without success.

View 1 Replies

ActionScript 3.0 :: Socket Sending Policy-file-request Twice?

Dec 8, 2009

Running my Flash app from localhost (in debug) I can connect/contact the socket server just fine. Note: It doesn't seem as though the server detects any 843 connection (e.g. the policy file port) this way. However, when I move the app to the server itself and run it from there (i.e. from the website), it will send the policy file, get a disconnect (as it should), and then try to execute the regular port stuff but doesn't read anything from Flash. It seems like my Flash app isn't writing to the port as it should, or something else is going wrong. I did also notice that Flash seems to be trying to send the policy-file-request twice.My process right now is like this:

1) Flash tries to connect to port 843. The server responds to its <policy-file-request/> with the policy file.

2) Flash reads it, disconnects from 843

3) Server gets graceful disconnect, then gets another connection on 843.

4) Just after that, the server gets a connection on 2188, but reads another <policy-file-request/>, so sends the policy file again.

5) At this point, Flash SHOULD simply write the string "Test" to the socket (that's in my connect handler). However, my server doesn't seem to read anything on the socket after the second <policy-file-request/>.[code]

View 1 Replies

ActionScript 3.0 :: Communicate With Server Through Binary Socket To The Server Through IP Address?

Oct 10, 2009

I am working on the web base flash application I am trying to communicate with server through binary socket to the server through IP Address and Port using Action script 3.0 at the server side we are using java. I will like to send binary data string to the server in a clubbed single packet. I dont know the Action Script 3.0 as much.for this We will have to communicate through IP and Port only

View 1 Replies

Flex :: Sending Character Zero "&#65533;" Over Binary Socket?

Feb 19, 2009

This code doesn't send the trailing null byte. How do I send the trailing null?

Socket.writeUTFBytes('Hello World');
Socket.flush();

View 4 Replies

Actionscript 3 :: Sending Character Zero "" Over Binary Socket In Flex

Feb 4, 2010

This code doesn't send the trailing null byte. How do I send the trailing null?

[Code]...

View 3 Replies

Media Server :: Sending Information From Server-side Script To Client?

Apr 18, 2010

I have created a script for an Adobe FMS application to broadcast a playlist of video files as a live stream. (internet tv)
 
I am now working on a custom Flash-based video player to play my stream.

How do I send information from my server-side FMS application (main.asc) to the client-side video player? (e.g: title, duration of current video player)

View 2 Replies

Media Server :: FMIS 3.5 - No Response When Sending Seriel To Server For Approval?

May 6, 2010

I have upgraded from FMS2 > Flash Media Interactive Server 3.5 I added both the seriel number for FMS3 and FMS2 during the installation process.  When I logged onto the admin panel there was no licence listed, and a link saying "to upgrade to unlimited connections now, click here".
 
So, I checked the fms.ini and no seriel was there.  I put the seriel number in and restarted the server through the FMSadmin tool.  Still, no licence file was showing. I then added the licence file via the admin panel and got a dialogue saying "Seriel Key "blah" Sent To The Server for approval".  The seriel key now appears with a valid status of false.  And no further progress after that.   The documentation states that when you add the seriel key in this manner it should recognise it immediately.
 
Can anyone suggest what I might have done wrong?  I have trebble checked the seriel number, and copied and pasted it to make sure it is exactly right.

View 3 Replies

Media Server :: Fms Live Stream Server Stops Sending Data Around 4+hrs?

Mar 21, 2012

My rtmp client connects to the server ok and rtmp data flowing ok for about 4hours, in the wireshark trace I can see that the server just stops sending data roughly after 4hours. The server version is 3.5.1, and I also try it on a 4.0 server the data stops coming from the server as well after 5+hours. There are no errors or any indication of session disconneciton in the diagnostic logs. I have also looked thru the settings in applicaiton.xml and server.xml I just don't see any obviious reason for the issue. I do send rtmp Acknowledgement to server after the client receives "window size" bytes, and the client sends ping response to server.

View 1 Replies

AS3 :: C# - Socket / Server MMO Communication

Nov 27, 2010

I'm working on a flash MMO with a c# server. I have a simple messaging protocol for the sockets. When a client joins he sends out this:

[Code]...

View 2 Replies

C# :: .net - Socket Server - Concurrent Connections

Apr 23, 2011

I have made a socket server in C# for a flash game that I am developing, I got the code from somewhere and I am a beginner in c# and .net development . It works fine in practice when connections are made and the server functions correctly. Get 2 concurrent connections at the same time and we have a problem. here is the basic aspects of the socket server below: (alot taken out for obvious reasons) how can I alter this so that it can handle concurrent connections? Should I be threading each response?

[Code]...

View 4 Replies

Java Socket Server And MySQL

Oct 22, 2011

I'm writing socket server in java for my flash browser based game and i need to connect to mysql database. Is it possible to connect to mysql through socket server and send received data to connected flash clients?

View 1 Replies

ActionScript 2.0 :: Can't Afford Socket Server

Oct 9, 2006

If you cannot afford a socket server and want to support a massive amount of people chatting and playing multiplayer games on Flash, what would you do? Should I use PHP/MySQL? Would that put too much strain on it and make it slow?

View 1 Replies

ActionScript 3.0 :: PHP / XML Socket Game Server?

Feb 22, 2008

I wrote a XML Socket server in PHP recently because I wanted to make a multiplayer Flash game in AS3. This server is supposed to be completely generic and doesn't have any game logic. You should be able to build pretty much any game with this server.

While writing it I realized the new version for Flash Player 9 r115 had some new security issues surrounding Sockets. So I implemented a crossdomain.xml and modified the XML Socket server to serve a crossdomain.xml file if it encounters a security request. The security policy socket server runs on 843 always (it's the default port flash player looks at).

Along with the PHP Socket server I wrote an XML Socket client in ActionScript 3 (AS3). This set of classes is also completely generic and is completely event driver. Your game client would include this file and pass it parameters through the Events classes in order to communicate with the socket server.

Lastly I created a very simple game / prototype using the AS3 class and PHP server. It is very basic, each player gets a ship, and can move around and shoot at other players. However I implemented all of the funtions: Logging in, Logging off, Synchronising players and movements, creating objects (ie firing a bullet), etc

View 13 Replies

ActionScript 3.0 :: Flex PHP Socket Server

Nov 28, 2008

I want to test a simple PHP socket server with Flex, server seems to work fine when trying to test using telnet, but Flex doesn't display any responses, here's my code:[code]

View 4 Replies

ActionScript 3.0 :: Connect To A Telnet Server Through A Socket?

Mar 20, 2011

I'm trying to connect to a telnet server through a Socket.On that server, I setup a crossdomain.xml file:

<?xml version="1.0" ?>
<cross-domain-policy>
<allow-access-from domain="*" to-ports="23" />
</cross-domain-policy>

[Code]...

View 2 Replies

ActionScript 3.0 :: Socket And Server Based Application

Jul 18, 2011

I am wondering if it is better to write basic "chat" client based servers in java because then you can have multi threaded servers where clients can connect and chat or if you can do this in Actionscript- minus the multi threading because from what I know air and or AS3 do not support threading.

View 2 Replies

Flash :: Can Google App Engine Be Used As A Socket Server

Feb 13, 2010

My webhost has rules against socket servers so I've been looking into GAE.

Does anyone know of a socket server that can successfully run on GAE? I'm using it for flash so anything like smartfox would be amazing if it's possible.

View 3 Replies

Flex :: Client / Server Messaging (RPC Or Socket)

Apr 9, 2010

I'm building a Flex application, which is going to perform many server requests (let's say, that almost all interactions require an update from server). At the moment I'm using remote procedure calls for it. But I was wondering if using a socket would be better. In other terms, is maybe better to keep the connection alive rather then performing many calls in sequence? For my demo app I only have 1 client. Is the number of clients connecting to the server a factor for this choice?

View 1 Replies

Java :: Connect To Socket Server From AS 3 AIR Application

May 12, 2011

I read through the method to connect to a socket server : [URL]. I wrote an AIR application to connect to the java server code, but the client cannot connect. What is missing in the code?

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="#D5F8C3">
[Code] .....

View 1 Replies

Actionscript 3.0 :: Connecting To A Ftp Server With Binary Socket?

Dec 30, 2008

I'm trying to make a little ftp upload app - not a full FTP client, just something to enable image upload with decent performance. I basically took the approach Lee used in his POP3 socket tutorial. The problem I'm having is that I can connect to the FTP server and I can authenticate and log in but as soon as I try to enter passive mode for data transfer I get nothing- not even an error. From looking at the FTP RFCs, FTP requires two TCP connections - a command connection and a data connection - does this mean that I need to open a second socket for the data transfer? Another possible issue is the Flash Player security policy not allowing conection to ports under 1024 - I have not placed a policy file or policy server on the host running the FTP server but as I can successfully login, I appear to be able to connect to port 21 (standard FTP port) anyway. The code I'm using is:

Code: Select allvar s:Socket = new Socket("ftp.actechnology.co.uk",21);
var ftp_response:String;
s.addEventListener(ProgressEvent.SOCKET_DATA, receiveReply);
s.addEventListener(IOErrorEvent.IO_ERROR, showError);

[Code].....

why passive mode kills it or has successfully connected to a FTP server with the socket class

View 10 Replies

ActionScript 3.0 :: Develop A Socket Server With TcpListener In C#?

Dec 14, 2009

i am trying to develop a socket server with TcpListener in C#.it will accept XMLSocket from flash clients and eventually im trying to make a simple multiplayer enviornment.i've so far created a server.exe from c# that simply listens and accept the tcp connection, announce(only within the program yet, not to all clients) if the client is connected and announce when the client leaves.

it is working fine from flash IDE (when you ctrl+enter to test) but it is not working from the published swf file.i don't know much about server administration so i dont know if im doign it right but ive created a crossdomain.xml and save it to root of the localhost (im using apache installed on my machine for local testing);

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://localhost/socket.swf cannot load data from 127.0.0.1:8888.
at socket_fla::MainTimeline/frame1()

this is the error mesasge that i get from flash player 10, after its trying to communicate with the server(about 10sec, it shows).

System.NullReferenceException: Object reference not set to instance of an Object.

this is the error i get from the C# server. from catch{}.

Code:
//Flash File
//Security.loadPolicyFile("crossdomain.xml");
var socket:XMLSocket = new XMLSocket();
socket.connect("127.0.0.1",8888);

[code]....

View 1 Replies

ActionScript 3.0 :: Socket Write Does Not Work On Server

Mar 23, 2010

I am working with flash CS4, compiling AS3 for Flash Player 9. So I use the class flash.net.Socket The main function is quite simple:

[Code]...

View 2 Replies

Flash - Render IP Camera Video With Socket?

Oct 3, 2010

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]....

View 1 Replies

Send Camera Video Using Flash Socket?

Jun 2, 2011

this is my flash as3 code :

var cam:Camera;
cam= Camera.getCamera();
var video:Video=new Video(200,200);

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved