ActionScript 3.0 :: Classes For Client-server Connections?
Jun 20, 2011
I am willing to make an online game client-server. That is, many clients are connected on the same server, and thus interact. The application used by clients is a swf (done in flash) and runs in a browser. My questions are: 1 - I can create the server in AIR? If yes, which of the classes are recommended to do this efficiently? 2 - What classes are recommended for clients (swfs) to communicate with the server efficiently? 3 - The transfer of data between the client and the server can only be accomplished through the TCP protocol?
View 2 Replies
Similar Posts:
May 20, 2011
I've been trying to figure out FMS for about a week now. Because of company firewalls, all traffic must go through either port 80 or 443 (I configured this in FMS.ini). I also created a self-signed SSL certificate and configured the adaptor.xml file to use it. Nevertheless, here are the problems I am experiencing: For RTMPT & RTMPTE, I can't start more than 9 connections. Beforing configuring FMS to also use port 443, I could only get about 4 connections. Now I would like to say that I testing this between only two computers, the FMS server with apache web server and a client.why it will not at least start 10 connections which I know is the limit for the dev version? Also, when using RTMPS I can only start 1 connection. Why is that?
View 4 Replies
Feb 23, 2012
I have been running FMIS 3.5 for about 18 months, and recently it started acting up even though I have not made any changes. After a while (sometimes days, sometimes hours), it starts rejecting new connections, but it allows existing connections to keep working. If I refresh my app, then I can't reconnect. The license I have is unlimited. Can anyone shed some light into why this is doing this and what I can do to fix it? Sometimes it happens when only a couple dozen people are online, and today it did it about 4 times with over 1500 people online.
View 1 Replies
Mar 8, 2012
We're writing a flash application that can download a MP3 file, convert it to a Sound object, get the raw data and make some processing (like adding sounds, change octaves). After the processing, we want to send the data back to the server in chunks, so the server will be able to glue the data together and recover the new generated file. The problem is: if we send to the server "wav" pieces of sound, we are able to glue them together without any problem in the generated file. However, if we convert each wav piece to a mp3 file (so we can send a smaller file to the server) and join the mp3 files at the server, the result is a sound with some problems at the merge point.
This is how we load the mp3 file from the server:
sourceSnd.load(new URLRequest("sample url to mp3"));
sourceSnd.addEventListener(Event.COMPLETE, carregou);
This is how we convert each piece of mp3 to bytearray and wav:
[Code]....
View 1 Replies
May 7, 2010
is it possible to write a class just to connect to the SQLite database? As in, writing the class, and calling it in another class, so that I don't have to type everything out everytime I need to connect to the database.
View 2 Replies
Jul 8, 2011
I have a setup where I have some edge servers (as in <Mode>remote</Mode>) that pull content from an origin server. I only want to allow RTMPE connections to the edge server. I'm trying to do this by using the <DisallowedProtocols> element on the origin server. I'm setting: <DisallowedProtocols>rtmp,rtmps,rtmpt</DisallowedProtocols>
in the relevant Vhost.xml on the origin server. However, when I do that, proxying through the edge server stops working. I get a "Connection attempt rejected by FMS server [ Server.Reject ] : Connection failed." from OSMFPlayer (which I'm using for testing) and these lines show up on the origin server's core.00.log file:
[Code]...
View 2 Replies
Oct 27, 2010
how can I find on fms server that client disconnected if if client disconnected due to power cut off. I client manually close the application then onDisconnect on server is called but if due to power cut off it does not called.
View 1 Replies
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
Feb 16, 2010
How is it possible to determine in advance the max number of simultaneous connection for my FMS?
View 2 Replies
Jun 29, 2010
The attached image shows 17 client connections. Unfortunately there are not 17 clients connected to that app. In fact, I add users to a userlist shared object in application.onConnect(), and that shared object only reports 6 connections. That is the accurate number of connected users.
Why the phantom connections? Even if I unload and reload the app, the 17 client connections return.
How can my userlist shared object and the client connection number be out of sync? This situation seems to be related in some way to an FMS memory problem that is cropping up all of a sudden. When I have larger numbers of connected clients - say 300, the client connections reported in the FMS console are ten times that - like 3,000 or more. Then the application is unloaded by FMS for being a memory hog.
The app itself is simple. It just stores each user in a user array and passes chat communication to and from these users. The last time this main.asc code was changed was 2/8/2010. No problems with it in the countless times we've used it since then. Why the sudden phantom FMS connections, memory hog behavior, and constant unloading of the app?
View 2 Replies
Aug 14, 2011
URL...I am running application instance that implements publisher/subscriber on video streams. Application code is very thin and can be removed completetly if required. In a specific time, randomly, disconnect messages stopped happening which causes the folowing:
1. Streaming service shows decrease of bw per second
2. Users count is increasing linearly.
3. No disconnect messages apears on access.0x.log
View 6 Replies
Sep 7, 2011
I have FMS 4 and a videochat app (one-to-one), everything runs smoothly until about 750 users (it means about 1500 connections to fms), then I get a sudden drop in users connected to 300-400, no errors in the fms log and the cpu/memory usage is at about 25% just before this. I'm running Windows 2008 R2 Web (x64) and I've red somewhere that maybe this version of windows has some connection limit that could be the cause, but I've no idea of what could be happening.
View 2 Replies
Apr 10, 2012
How to set the maximum number of connections of FMS on the same IP?
View 3 Replies
Sep 10, 2009
If I am streaming at 256kbps how many connections can I get on a 100MBit port? I confess tnat I don't know the math
View 12 Replies
Mar 17, 2011
I have a FMS server running that I am hosting some VOD content on. I am using HTTP dynamic streaming to deliver this content. Everything runs fine from a technical standpoint, but I am unable to see the connection details in the Admin Console. I have loaded vod -> defaultinst under the applications tab in the console. No connection details populate.
View 1 Replies
Jun 4, 2011
I'd like to hear some opinions about using NetGroups VS. using direct p2p connections between everybody, considering there would either be 2,3 or 4 people max in the group.
View 1 Replies
Nov 26, 2009
We have a flex application communicating with our server. The flex app makes many HTTP requests (posts and gets) to the server, in many cases in parallel. We have been noticing that we get many dropped connections, experienced from the flex app. The server does not see any failed requests at all and is not under load. I am also suspecting that flex may be on-connection-drop, automatically retrying the POST or GET request, resulting in our server receiving the request twice.
View 2 Replies
Nov 23, 2009
Does FMS 3.5.2 in development impose restrictions via the origin of connections? That is, does it only allow localhost connections via ActionScript (NetConnection) or are external connections allowed?In other words, can I have FMS in dev mode on a dedicated server and then have my client code running on a different machine that opens connections to this development server?
View 2 Replies
Apr 11, 2012
In multiple instances, limiting the maximum number of connections for the same IP?You give me the answer is to limit a single instance, whether there is a way to limit the number of users of the entire connected to the FMS?
View 5 Replies
Oct 7, 2009
We have a custom application that is running on FMS. Server is dedicated just for fms, there is only one application running on the server, with more instances, average traffic is 3-15 simultaneous users.The problem is,server suddenly stops accepting connections (after 1-3 days from restart), from this point it is impossible to connect to any instance, and fms server must be restarted.When the server crashes, the admin console can see all open instances, can close instances, can restart fms. There is nothing logged, that would explain this sudden failure.Second problem is, cores are connected and disconnected too often, causing client to reconnect (takes 2-5 seconds).
Hardware: 4 x quadcore Intel(R) Xeon(R) CPU E7440 @ 2.40GHz, 32 GB ram
OS: CentOS release 5.3 (Final), kernel: 2.6.18-128.4.1.el5
cpu and mem usage: 1-5% max[code]...........
View 1 Replies
Dec 10, 2010
Server conf:
2 x Intel(R) Xeon(R) CPU L5410 @ 2.33GHz
16Gb RAM
2 Gbit ethernet channel
OS - Linux CentOS 5.5 x86_64
FMS4 Interactive
Live stream parameters:
320Ñ…240 qua_=87 bw_=200000 kf_=5 fps_=18
So, after approximately 600 connections to one stream video becomes choppy (periodically freeze, slow motions). CPU-usage at this time is 100-120% (maximum is 800%, 100% per each core), network usage is 500 Mbit/sec.But second live stream(with few connections) at this server looks fine simultaneously with 600 connections at first stream.Experiments with recommendation in "Configuring performance features" documentation chapter(enabling/disabling aggregate messages and configure the size of stream chunks) do not help.
View 2 Replies
Jan 9, 2011
I'm trying to find out how I can tell how many users are connected to the same FMS application in a flex application:
public function totalConnectedUsers():void{
lblText1.text = "There are a total of " + bindableUserVariable + " Users Connected to the Stream Now";
}
View 6 Replies
Jun 7, 2011
It stands to reason that an OS would have a memory limit for the FMS process. I have a video chat app to which I may need to connect 300,000 or more concurrent users. Has anyone done this? Would this break the bank? What's the most you've ever had connected at once?
The video portion of my app goes through a good CDN, so I don't think there's a problem there. But my chat room is all on one FMS instance. I see something in FMS docs in "configuring performance features" that warns, "Adobe recommends that you ensure that your total system memory usage does not exceed the process limit of your OS". Granted it's in the context of configuring media cache, but wouldn't the same apply to chat room size if the numbers get high enough?
View 5 Replies
Mar 1, 2010
I am involved in project managment for a large video conferncing project involving over 100k simultanous connection and most likely to be increased 4 times by next six months.While figuring out the scalability area ,it was concluded that smart selection of hardware and origin-edge clustering will be suited most. Well while studying this documentation says it supports thousands of calls but unfortunately I could not determine the actual numbers. Can you tell me how many edge server will be needed for 100k simultanous calls/number of sessions per edge server and will we need license (4500$) for each edge server?
View 2 Replies
Jun 29, 2010
i have a small LAN of about 8 computers all of which are running windows 7. I have installed FMS and XAMPP webserver on one of the machines. I want to stream live from one PC to all the other PCs on the LAN. I have a webpage with jwplayer embedded in it on my XAMPP webserver that is able to see the live stream when i start it locally. I mean the live stream works fine on the machine with the servers on it. But when i want to view the live stream from another machine in the LAN by accessing the webpage that has the jwpalyer from another machine, The jwplayer returns "server not found:rtmp://192.168.10.1/live" error. I was thinking that maybe a firewall is blocking the 1935 port but i have turned off the firewall of every PC on the LAN. I have unistalled any antivirus program on all the PCs. But i still get the same error when i try to access the live stream from another PC on the LAN.When i run netstat -a -n|find ":1935" i get 192.168.10.2:49184 192.168.10.1:1935 SYN_SENT and i think the request for the stream is sent but the conection is rejected.
This is the code for the webpage with jwplayer embedded in it. maybe it:
<html>head> <title>JW FLV Media Player</title> <script type="text/JavaScript" src="swfobject.js"></script>
[code].....
View 3 Replies
Jan 8, 2010
i am new on steaming & flash server; when we try to use RTMP over HTTP the outside client gets the internal IP address of the FMS server instead of the NAT one or public IP address, how can we solve this.
View 1 Replies
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
Sep 6, 2010
I understand how clients use bandwidth detection etc to dynamically switch streams via client calls with ns.play2( ... ), but I was wondering if it's possible to only ever use 1 initial ns.play( ... ) call on the client side, but let FMS server side logic that I write dictate which client sees what content. For example, I have 3 clients connected to my FMS server, all watching a live stream. I then decide I want clientA to see 'recordedMovieA.flv', clientB to continue seeing the live stream, and clientC to watch 'recordedMovieB.flv'.
[Code]...
View 5 Replies
Apr 7, 2010
i am currently playing around with a flash media server trial in combination with the flowplayer.All in all i am testing the performance and general functionality for the company i work for.Anyways, i am trying to search a way to check the bandwidth of a client ( server sided ) and redirecting him to the right video stream.Sure this could be done by the backend flash application, but its out intention to perform this check server sided.
View 4 Replies
Sep 19, 2010
I want to limit server recorded netstream length to 10 secs at client side using as3. How can I do that?
View 2 Replies