Media Server :: Calling Client Methods From (FMS 3.5)?
Jul 10, 2009
- Flash Media Server 3.5 (using ActionScript 3 for server-side code)
- Flex application (built in Flex Builder 3, using ActionScript 3)
Now, I'm trying to get the server-side ASC code to call something from a connected client. It doesn't seem to work (thought everything else works beautifully). I've tried stuff like the following in the server side:
- In the application.onConnect function, I've tried this:
...
currentClient.requestChat = function (reqID, destID){ trace("Requesting chat..."); currentClient.call("requestWaiting", new reqHandler(), reqID, destID);};
...
(Where reqHandler is just some handler that I know gets called).
- I've also tried the following code outside the onConnect function:
Client.prototype.requestChat = function (reqID, destID){ trace("Requesting chat..."); this.call("requestWaiting", new reqHandler(), reqID, destID);}
Both seem to fire appropriately (when triggered from another client). However, the "requestWaiting" method call to the clients doesn't seem to work at all. I've tried some AS 2 examples on the client side, like:
nc = new NetConnection(); nc.client = new Object();
// function for handling queueing of requests for this station nc.client.requestWaiting = function (reqID:String, destID:String):void { trace("HELLO"); // check to make sure this is the right location, and if so, queue it if (destID == "WhateverTheIDIs") { chatQueue.push(reqID); btnChatWaiting.visible = true; } // if }
...but that doesn't seem to fire at all. I know the Flex has "sealed" the NetConnection class itself, so I can't just "extend" it as I do the "client" property.I've als tried some more AS 3-oriented stuff, like trying to make the "client" property reference a separate class that handles callbacks, but that doesn't work easily for me as I need access to properties in the class that contains the NetConnection.
View 2 Replies
Similar Posts:
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
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
Sep 23, 2010
I am trying to make clients to connect FMS4 server over RTMFP for my video conferencing application.It is basically a client-server media relay application in which clients with webcam/mic connect the server and the server relays video/audio data to other clients. This application is working perfectly with FMS 3.0 but it was RTMP rather than RTMFP - I simply replaced 'RTMP' with 'RTMFP' in netConnetion and tried to test in Flash Media Development Server 4.0, but it is failed to make a connection from a client - it was working after replacing it back with 'RTMP' of course.
I believe server-client media relay is possibe using RTMFP in FMS4 because Adobe said:"Although RTMFP is often used for peer-assisted networking applications, you can use RTMFP in unicast, broadcast, and multi-point publishing applications as well. Simply replace the RTMP protocol in the NetConnection.connect() call with the RTMFP protocol:" in url...
View 7 Replies
Jan 2, 2011
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?
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
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
Sep 8, 2010
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.
View 2 Replies
Nov 30, 2009
I have to load a .swf file in all connected clients by pushing a button from another client
View 23 Replies
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
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
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
Mar 6, 2009
How can do I authenticate the client using an LDAP server?
View 6 Replies
Jun 11, 2009
I found some stuff in an old FMS book (great book on FMS but very old) on how to subscribing to the Log streams. The does a netConnect & NetStream and used a nc,onLog to get play back but onLog does not seem to be supported anymore. how I can playback logs from FMS 3.x into CS3 client?
View 1 Replies
Sep 11, 2009
i know the way to capture the mic's sound,My idea is to make an application to record songs palyed by other app,like Windows Media Player,Yes, Just capture from the soundcard,
View 3 Replies
Sep 29, 2009
Is a latency of 94 - 109 high or low....if its high how do I lower it via the client I don't have control over the server at this point in time.
View 2 Replies
Jan 15, 2010
Do i need a wireless connection from the server. I am thinking of installing an access point to test the server.. The only challenge is i dont know how to get the client to receive streams.
View 7 Replies
Mar 20, 2012
Is there any way to perform client authentication in FMS 4.5.1 (username/password/session id) for live/livepgkr application? As without it anyone will be able to discover RTMP/HLS URL and access to live streams without any limitation.
View 6 Replies
Jul 14, 2009
In <FMS plug-in developer guide> we can see "You can query your organization's database of users and passwords to determine which connection requests should be allowed. Once the plug-in accepts the connection, you can update the database with a record of the
View 4 Replies
Oct 28, 2009
I've shoved an array in a RSO serverside and now i need to update values in the RSO client side ...I tried the following but it doesn't work...I'm using actionscript 3.0
so11.setProperty("conTrol[1]","test"); so11.setDirty("conTrol");
View 2 Replies
Feb 3, 2010
I have been looking for a way to tell what file was requested from within a VOD app when a video is played. I want to use the file name for something else but I dont want to have to send it with a second argument in connect().
Is it possible to tell what file is requested??? If so how can I do this??
View 6 Replies
Aug 30, 2010
What if I access video delivered through media streaming server on IPAD client. Does it supports?
View 5 Replies
Sep 30, 2010
i had installed a FMS4 developper in server on my centOs. I can connect to my FMS with client with RTMP, but with RTMFP, FMS don't reply. I looked at FMS log and i saw edge. 00.log:
2010-09-30 13:11:53 4984 (e)2631504 RTMFP could
not start on edge process for _defaultRoot__edge1. Famille d'adresses non support par le protocole -
View 3 Replies
Oct 27, 2010
i want to write responder in fms 3.5 here is my code but is not working
clientCount = function(AppClient)
{
AppClient.call("fmsping",myResponderSuccess); // fmsping is the function at client side which returns true boolean variable
[Code].....
View 3 Replies
Dec 23, 2010
i'm going to develop a remote desktop project like VNC or RDP. The desktop is captured and encoded as H.264. The code of flex client is very simple:
[Code]...
View 1 Replies