Flash :: Professional - Use The Sockets - Setup Server?
Feb 10, 2010
i'm trying to develop a multiplayer game in AS3, but i don't know how to use the sockets, how to set up my server, actually i don't know how to start, i want to build a peer to peer game, which will have a "room" to find players, it will be a cars game, i already have all the rest of the game, i just need to be able to make it multiplayer
I have started the vhost setup. I have cpanel on the server and I added the domain and it resolves to the hosting account just fine pull up www.domain.com and goes to server.
I added the www.domain.com vhost. I pointed the application dir to /home/domain/public_html/applications/
I copied live over to applications dir. I setup user and pass for the virtual host login.
i have a orgin server and 2 edge servers and a load balancer
first off im confused in each edge server i set them to be remote, rtmp and changed the routeentry to <RouteEntry>*:*;96.44.***.***:1935</RouteEntry> on both servers
orgin server is just local
what my question is im streaming to orgin and its getting sent to 1 edge and other edge is doing nothing no traffic the stream i set it this way url:
'rtmp://173.254.***.***/live/live_test',
which is the 1 edge thats working if i setup another channel pointing to the other edge server ip adresss it doesnt work.. what am i doing wrong isnt all this supposed to be load balanced or am i missing steps...or did i do it wrong on the flash player config.
I've benn trying to get a simple socket server test to work for days now and it seems I'm not getting very far.Basically I just want to send some data from flash to the php script and have it echo it out, or anything at all like that I've been working from this tutorial http[url]....I have this basic flash class which just sends a string to the server:
The server side php is the attached script (pretty much this http:[url]....So I keep the php running on my server then run the as class, what happens is after a while (presumably the 15 second script limit in as) I get this error:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: .../networking.swf cannot load data from website.com:9980.at base()
I am trying to create a flash player to stream an on online Internet radio station using FMS. I chose FMS after being told that I need RTMP server to extract the metadata. Our radio audio is being encoded using a DJ interface called SAM Broadcaster. But for some reason, it does not have an option to send over the stream directly to a Flash Media Server. Only options are either IceCAST or ShoutCAST. How should i setup the stream? Should it be Stream encoder>> IceCAST/SHOUTCast Server>>Flash Media Server>>Flash Player Client. Or should I setup Stream Encoder>>Flash Media Server>>Flash Player Client? Shouldn't Flash Media Server be an alternative to IceCast or Shoutcast? If that is the case, how do I send over the stream from SAM Broadcaster directly to Flash Media Server without restreaming through another streaming server?
When I downloaded a developer edition from Flash Media Server page (11 Oct 2011). I tried to follow the setup instruction in readme.htm which comes in the zip of Linux version.I logged in to terminal as root user and call './installFMS' and then the terminal show me:
ERROR: Your operating system is not supported by the Adobe Flash Media Server installer.
Does it mean Flash Media Server Developer Edition cannot work on OS X Lion (10.7)?
When I downloaded a developer edition from Flash Media Server page (11 Oct 2011). I tried to follow the setup instruction in readme.htm which comes in the zip of Linux version.
I logged in to terminal as root user and call './installFMS' and then the terminal show me:
ERROR: Your operating system is not supported by the Adobe Flash Media Server installer.
Does it mean Flash Media Server Developer Edition cannot work on OS X Lion (10.7)?
var s:Socket = new Socket( "127.0.0.1", 6667 ); s.writeUTFBytes( 'WEBIRC cgipass "cgiirc" this.is.testing.com 127.0.0.1' ); s.writeUTFBytes( "NICK DaBit " );
[code]...
It works to a point, it pings out as if I never did PONG in response, but I never got the PING message which tells me I'm not listening in on the connection correctly. What do I need to do instead? Btw this is all I have, it's all on 1 frame.
Here is my Output thing:
Attemping to launch and connect to Player using URL C:Documents and SettingsDavidMy Documents est_socket.swf [SWF] C:Documents and SettingsDavidMy Documents est_socket.swf - 3088 bytes after decompression :127.0.0.1 NOTICE AUTH :*** Looking up your hostname...
No I have installed fms4.5, but I can't find good docs how to set something like this up. In Learning section I saw a lesson, but this one isn't ready.So I want to publish using flash and the subscribers to the livestream can be iPhones or Browsers.
I would like to know if it's possible to capture a users webcam in flash and directly upload it to YouTube without a backend server setup. Or if there are any third party providers that support this service. I see YouTube offers a live streaming API, but it seems it's only available for selected users.
I want to open a connection back to the server using Flex so I can stream chat messages to the Flex front-end. How do I do this and does Flex enforce any same-origin restrictions on ports or subdomains?
I have written an ActionScript 3 class that is a Server Socket and accepts connections.I want to write a client in order to send data to the server. The client will be a mobile browser. I think that i will use javascript. Is it possible to connect to the server from mobile environment?
my initiall 30 day trial of flash cs4 loaded but would not uninstall after the 30 days. eventually i just erased the folder in fruo worstration.later downloaded cs4 web premium package but setup.exe wouldnt work on it. redownloaded flash cs4 bout setup.exe didnt work. i get the swriling icon for a few seconds then it disappears and nothing happens. i notice it stilll running in the task manager hours later, but doesnt do anything.
I'm building a multiplayer card game using Flex on the client side and Java on the server side and I wanted to know if I must sockets and the accept method in order to connect users to the server for in order for them to join a game room or create one or to chat.In the past I've learned how to build a game server which both sides are JAVA and connection was in sockets but now days the client side will be in FLEX which has few ways to connect to a Java server (XML,SOAP,BLAZEDS(AMF)) and I find it hard to understand how to write the Java server in order to do all the features of a game server,especially managing the rooms and sending data back to the users.
In the sockets way, when a user was connecting to the server and he had opened a room, this room was opened on a thread and who ever was joined that room then he was connected to the same thread and sending the messages to the right place was easy, so the problem is understanding how to do the same using SOAP or BLAZEDS.
It will basically walk you through the windows to perform a typical setup, with some branching off for special cases. Essentially a main series of screen shots with text that you can scroll through using arrows, with links off to other screen shots or sequences as need. My boss wants it to be "hip and flashy", so wants me to look into Flash. But is that the best tool to use for this ? In all the Flash tutorials I have been watching I haven't seen anything that looks like that kind of application.
I've watched a really helpful tutorial on FB4.5 for PHP by Mihai Corlan and am hoping to use some of his techniques but would like to use a different PHP server because Zend Server costs money and I'd rather avoid polluting my workstation with still more daemon-type services. I've set up numerous Debian and CentOS servers from scratch and would like to configure FB4.5 for PHP so that I can debug both my Actionscript and PHP. Has anyone done this? I could certainly used advice from someone who's gone through all the trouble already. I'd very much like to capitalize on all of the ways that FB4.5 automatically generates code and creates links for you rather than writing all that stuff by hand.
We are trying to setup FMS so that a section of videos for streaming are restricted to a specific network, while other videos would be available to all to stream. According to what I read, this is best restricted by means of a vhost. However, I've spent 3 days trying to get a vhost to work and am thoroughly stumped.Our current configuration for the _defaultVHost_ is: within vhost.xml, it points the apps dir to ${VHOST.APPSDIR} which points to the default install location. The VOD_DIR within fms.ini points to a separate location: d:contentflash.
I have a problem with setting up my FMS and to NICs
NIC #1: public IP NIC #2: private IP
On #1 I will setup port 1935 and 80 - Clients can connect to my livestreams
On #2 I will setup port 1935 and RDV for the FlashLiveEncoder and the RemoteDesktop
My problem is, when I activate the NIC #2 the FMS is noct reachable from the public NIC.I think it is a FW problem or a problem withe application.xml. how to setup my server (NIC, application.xml and FW) to run how I like?
I was successfully able to setup FMS edge-origin cluster but Origin-only clustering is the one we wanted for our live applications. The only place I found was 'Large Scale Deployment with FMIS'. I guess for Origin Only Clustering, we need to have our own caching system. What does get cached in a Live AV Chat? How do I propagate it to other Origins? What kind of plugins would I need for cache managing? What should the plugin do?
In the attached Origin Only Architecture, what does the Primary Origin do and Secondary Origin do? I thought Origin is the place where the application is actually running and Edges do proxy. Is it the same here in Origin-only clustering also? Are there any tools which can measure the lag in AV? (like performance measuring tools or load testing tools for FMS). What kind of software Load Balancer can we use for FMS clustering? (Like Nginx, Zeus or something?)
I have a task before me that I have not spent any time researching in the past because I never thought I would have to do it... I need some specific advice from some of you gurus out there.I need to set up a training facility in which we film a teacher in HD and broadcast it live across the internet to 30 locations around town. I also need to have a live chat going with the video in which any of the viewers can ask a question to the teacher and he/she can answer it in the lecture being given.
The 30 locations that the viewers will be at will be a board room setting with an HDTV on the wall , and maybe a wireless keyboard and mouse that they can share to chat with the teacher.I know I can quickly figure out all of the video stuff, like lighting and cameras. I really need advice on all of the technical stuff that it takes for the live broadcast on the internet.
I imagine that I will choose a content delivery network, but which one? I imagine that I will use Flash Media Server, but which version? Do I need a real time transoding device to feed the analog HD video signals to to feed it to the computer? The company has T1, is it fast enough on the uploading to get what we need done?
I have been testing a project with no license key(Dev) and last week I purchased a Flash Streaming license but I go into the fms.ini and insert the key and restart FMS but my streams no longer work and the only error I seem to be getting is: Found Connection Penalty (RTMFP) on core launch, penalty active since time 1294334608.351221 I remove the key and restart the service and everything works fine.
I even tried reinstalling FMS and provide it the key when it asked in the installer but same issue. Is this error related to an issue with the licensing key? There is no error when I remove the key but can't get support through contacting Adobe by phone. I asked what is the proper way to install the key and they said they would open a ticket and contact me back but its been 2 days not including the weekend, I thought it would be a very simple question for the FMS dept that I was speaking with.
I have installed FMS 4.5 successfully. I am able to run all the videos in the index.html page (filmthos.com/flash), including the HLS video on my Iphone. I was able to setup a video player for rtmp and it works fine, but I am having trouble with setting up video players for HLS and HDS. I am looking for somthing simple.
The source file or located in these location: /hds-vod/mvp5/media/MP.mp4.f4m and /hls-vod/mvp5/media/MP.mp4.m3u8 respectively (the httpd.conf location for both is HttpStreamingContentPath "/opt/adobe/fms/applications"). So obviously I want a simple video player for the HDS that plays flash and another to play HLS and HTML5. The index.html seems to cumbersome to fine out how these players work.
Is it possible to use origin/edge setup when streaming using HDS ? I have succesfully tested using RTMP but when I try the HDS string - get error "we are having problems with playback". I can view the stream directly if I connect to the origin server. I have 1x origin server and 1x edge server.
I have a load balancing problem for example I have two FMS servers I want to make aconnection between them if the first server overload the second can handle the request
I am trying to set up my video site to stream from the fms server¯ and the instruction stated that I should create my own new folder in the application directory on the fms server, and I have created my directory, which I called brigma_streams¯, and I have copied files from {FMS-Install-Dir}/ sample/Application/vod to my new folder.
We are planning an implementation that would be setup as automatic failover in the event of a disaster. We only have two physical servers (Windows 2008 R2 based). What is everyone's suggestion? I read a lot about origin-only cluster and origin-edge clusters. It seems like origin-only cluster would work best for this type of fail over but I'm not sure. We would most likely use Microsoft network load balancer built-in on Windows 2008 R2. We have the option of using remote storage but could also do local storage. The types of streaming would be videos loaded to the server (not live). Let me know any suggestions to achive an automatic failover with two physical systems
I'm stuck trying to get a Stream.play() call on a recorded video file (.flv) to translate from origin to edge servers. Don't even know if it's possible. If I call Stream.play() on a server, and connect a viewer directly to that server, the viewer sees the stream play. If I call Stream.play() on an origin server and connect a viewer to edge servers the stream does not play.
Is it possible to configure in any way that the play() call would propagate to edge servers? According to FMS 3.5 docs on the Stream class, the following is the case: "When you call Stream.play()on the server, the server becomes the publisher." See [URL].
If that server becomes a publisher and lets say it was an origin server on a CDN, shouldn't the other machines in the configuration receive the published stream? Somehow when you publish a live stream to an origin server it makes its way to edge servers. Is this analogy not relevant to the scenario wherein you call Stream.play() on a recorded file?
I have a question regarding FMS 3.5 and live streaming with failover protection. Currently, we are running a single server with FMS 3.5 for our VOD and live streaming events and its been working great. Recently during our last live video stream the server decided to die and naturally the live stream was lost. To prevent such a future scenario from happening, and given that I am on limited budget what would be a best method of prevention. I saw there is limited documentation on setting up origin to edge, or two origin servers (more likely for us since we can maybe purchase one more server at this time) but I do not have access to make network/router changes etc. I do have full access to configure my Windows 2003 servers however.