Ruby :: Combine Websocket Server With An AIR Client?

Feb 28, 2012

I'm working on what should become a quiz-like mobile app. The idea is to combine a Ruby websocket server (or preferably Juggernaut as the app has chat functionality) with an AIR client.In the past few days I've been trying different web socket servers with multiple Flex code snippets but I can't get any of the clients functioning. Looks like the connection is made but I get the idea that the client is unable to perform the handshake correctly (and subsequently disconnects). A lot of the Flash/Flex code snippets I found are a few years old so my guess is that the web socket protocol has evolved in the mean time without the Flash/Flex code bases getting these updates.

View 1 Replies


Similar Posts:


Actionscript 3 :: Client + Grails Server - Processing Audio At The Client And Sending It Back To The Server

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

Media Server :: Find Client Disconnected When Client Lost Net Connection?

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

ActionScript 3.0 :: Combine Two Functions Into One Server Call?

Jul 21, 2010

I am wondering if I can somehow combine these two functions into one server call. The problem I have is that I have 2 different data types that I need to send. One as a ByteArray and one via URLVariables.

Code:

// this works on it's own
function callServer():void {
var urlRequest:URLRequest = new URLRequest("echo.php");[code]..././.

View 1 Replies

Media Server :: Client Returns Server Not Found:rtmp://192.168.10.1:/live When Accessed From Another Pc?

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

Media Server :: Use RTMP Over HTTP - Outside Client Gets The Internal IP Address Of The FMS Server?

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

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 :: Dynamic Stream Switching From Server (not Client) Side

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

Media Server :: Check The Bandwidth Of A Client ( Server Sided ) And Redirecting Him To The Right Video Stream?

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

As3 :: Media Server :: Limit Server Recorded Netstream Length To 10 Seconds At Client Side

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

Media Server :: Call Methods Form Server To Client?

Apr 28, 2010

I m working in flex3.0 and i just want to know that how can i call a function from fms server to my AS3.0 (Client Side) code.i tried the syntax client.call(methodname,null,null); but my flex code throw exception unable to call the method.here can i use clientobject.call (methodname,null,null) and is there some special way to declare that method at client side.

View 3 Replies

Media Server :: Setup Of Client And Server For Live Webcam?

Oct 9, 2011

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.

View 13 Replies

Flash :: Ruby Server - Unload Previous Files And Eliminate The Garbage Build Up?

Feb 19, 2010

I have a working TCP/IP socket server that loads 3-flash files in succession. How can I unload previous files and eliminate the garbage build up? 2-Flash clients are active, 1-the loader, 2-the next Flash file being loaded, however "the Flash files don't unload." Maybe there's a "put - kill" method or something similar to addChild removeChild in as3.

[Code]....

View 2 Replies

Ruby On Rails :: Adobe Flex 3 - Fault Event Doesnt Return XML Feed Sent From Server

Nov 25, 2009

I am working on a flex application which communicates with a Rails backened.When i request for some data, It sends back xml feed.

In some cases, if given parameters are not valid, then rails return an error feed with status code = 422 as following email is wrong

But I dont get this feed in FaultEvent of Flex, How could i read error feed?

View 3 Replies

Html5 - Using WebSocket With Flash?

Jun 24, 2010

I found web-socket-js for running WebSocket in Flash.

If I run WebSocket under Flash, can all browsers with Flash player installed support this?

View 2 Replies

Php :: XMPP Or Websocket Or Others For Realtime App?

Apr 25, 2011

I heard of XMPP, websocket. I'm confused about what to use. For example let's say I'm a financial broker and distribute real time quotes to client platforms on the web and on desktop in Flash, .NET or PHP. What should I use ?

View 1 Replies

Iphone :: WebSocket Library For Android / IOS And Flash

Jun 14, 2011

can someone please provide an example of WebSocket implementation in Android, iOS(iPhone/iPad) and Flash (not flex!).I found some libraries but none of that work :). My browser WebSocket implementation is working great using Socket.IO, now I would like to dig also into Android, iPhone and Flash. I tried to implement a Android webview pointing to a website where sockets are implemented, but it doesn't work. I would be great to have some native library for that.

View 5 Replies

Ruby On Rails :: Write XML File From A Flex Application Back To A Rails Server?

Feb 2, 2010

I have a XML-file, which I want to send to a rails server. To do so I use the following code:

<mx:HTTPService id="dataService"
result="resultHandler(event)"
resultFormat="e4x"/>

[code].....

View 1 Replies

ActionScript 3.0 :: Client With VB.net Server?

Apr 28, 2011

where I can find a tutorial or source files of an AS3 chat client with VB.net server.I know there are AS3 Client and Java servers, but to put it bluntly, I have no experience with Java and am more familiar with VB. If no such thing exists then I would have to learn Java which would be nice but could take a while.

View 1 Replies

Ruby On Rails :: Flex - Ruby On Rails Routing Error

Feb 11, 2010

I was developing the Application in Flex and ruby on rails.

It is working fine some times. but some times i am getting routing error.

Error: "No route matches "/index.html" with {:method=>:get}"

Here index.html is my login page

View 1 Replies

Media Server :: When Call A Client Side Mothed From Server Side?

Nov 10, 2010

Below is the code. When the swf is connected to FMS(the connection is successful) I use this application.user_so.send("enterContestGroup"); to call the client side mothed. You can see that in the client side I have defined the "enterContestGroup" mothed. However the fact is it doesn't call that mothed. Can anybody tell me what the error is
 
application.onAppStart = function(){  application.user_so = SharedObject.get("user_so", false);  application.nextId = 0;}application.onConnect = function(newClient)  application.acceptConnection(newClient); 

[code]....

View 8 Replies

Media Server :: How To Load A .swf Into All Client

Nov 30, 2009

I have to load a .swf file in all connected clients by pushing a button from another client

View 23 Replies

Media Server :: Call A Particular Client Through FMS?

May 5, 2010

How to call a particular client from fms.Actually i m making a private chat application in which text messg send from one client to another specific client through FMS.So i m confused how gms recognize a particular clients.I am avoiding application .client[] array that contains all the connected users references.becoz it changes at the time of connection and disconnection of client from fms.

View 2 Replies

Media Server :: How To Know Client Is Disconnected

Oct 27, 2010

There is a big problem in which i stuck .how to know that client has been disconnected if client pulls of cable or manuallu disconnect netconnection.

View 1 Replies

Media Server :: 2.0.5 Client Disconnection

Mar 24, 2009

1. The basic problem I would like to solve is detecting when a connection to the Flash Media Server fails.Our client-side application establishes a persistent NetConnection and publishes a number of video/audio streams to the FMS.After publishing some videos, some clients find that recording no longer works. I need to add code to let them know that there's a connection problem. I've studied the NetConnection class and can't find an built-in method that can help alert the user if the connection is broken.

2. Also, I'm having trouble tracking these events in the FMS logs. Are there any key statements I should look for that would tell me if the FMS has experienced a sudden loss of connectivity with a client?I was thinking of using the onAppShutdown (?) event to detect when an application closes normally, so I can then get an idea of when it's closed down in other circumstances.

View 1 Replies

ActionScript 3.0 :: Talk Between Client And Server

Feb 5, 2009

I'm trying to be able to see all the connected users to my swf. I know how to trace it out server side but how do I send it back to my swf so I can see it? I get a success responder but my value is null.[code]

View 0 Replies

ActionScript 2.0 :: Font - Come Off Server Not Client?

Sep 29, 2004

I have a program in which the user can type in whatever they want, hit Submit, and then they can change the font of it.

However, there are many unique fonts that many user's don't have, and I'm using a
.setStyle("fontFamily", theSelectedItemLabel);

To choose them. Is there a way I can pull the fonts off the actual SERVER the .swf is hosted on, instead of it coming from each individuals computer?

View 3 Replies

ActionScript 3.0 :: Server-Client Fast Networking?

Jan 15, 2010

I'm wondering if it's possible to have a server-client networking, based on a UDP or other fast protocol, suitable for fast paced multiplayer game?Server side code doesn't have to be written in actionscript, but it would be good that I don't go out of flash borders. The most important is that client must not install any plugins or other stuff, except flash player itself and client code must work in a browser, so no desktop apps like adobe AIR.

View 1 Replies

ActionScript 3.0 :: Connect To C# Server From Flash Client Using SSL/TLS?

Sep 15, 2010

We are currently in the process of trying to connect a c# server from a flash app. This hasnt been a problem so far - we have simply used the Socket class.We now have a requirement to encrypt the stream using SSL/TLS. This is no problem in c#, but much more problematic on the flash side. So far we have found two options: As3crypto lib, and AIR 2.0 SecureSocket. However, neither option has proved to be successful.

As3Crypto - TLSSocket

Using this method when we execute the code, the server throws an exception - this appears to be due to As3Crpyto's PARTIAL support of TLS.

AIR 2.0 - SecureSocket

We are currently using the latest Flex 4 SDK. We have imported AirGlobal.swc to alllow us to create a SecureSocket in a similar manner to the TLSSocket. The code builds but does not run - some File Not found error or something - probably because SecureSocket is not found in the runtime. I assume this is because AIR is intended for desktop applications rather than apps embedded in a browser.

So, now we're stuck. We have the option of encrypting the data instead using some PGP algorithm available in the As3Crypto lib. However, we would much prefer to encrypt the stream using something like TLSSocket or SecureSocket.

View 1 Replies

Media Server :: FMS - How To Authenticate Client Using LDAP

Mar 6, 2009

How can do I authenticate the client using an LDAP server?

View 6 Replies







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