Media Server :: Execute External Script OnDisconnect (main.asc)
May 19, 2011
Does anyone know if it's possible to execute an external script with the onDisconnect function on FMS?
I'm trying find a better way to log when a user disconnects from a chat application.
View 1 Replies
Similar Posts:
Jul 15, 2010
onDisconnect function called automatically at any time on script side. idea why it's getting called at random time.tell us how to handle this situation.
View 9 Replies
Aug 25, 2010
how to clear the client entry from Adobe flash Media server 3.5. when net disconnect.i was expecting that on netdisconnect from the client side end(which is connected to FMS) its onDisconnect event fire similarly as it fire for browser close.But when internetdisconnect ondisconnect event not fires at FMS side is there any way to overcome this or any other event fire at that stage?
View 6 Replies
Nov 8, 2010
We are using Flash media server 3.5 with Windows. We have deconnection problems with visitors using Microsoft Internet Explorer (to be fully confirmed but we are nearly 100% sure) and in chat rooms; there they wait for their turn to speak to an online consultant, sometimes this waiting list can be 10 to 15 strong. Normally, when a client is automatically disconnected from a session, whatever the reason it is the ˜onDisconnect which is called up. Sometimes and with MS Internet Explorer this is not the case : the visitor or user is not anymore present in the chat room, he has quit or he got his interview with the consultant but ˜onDisconnect™ is not launched.
This causes unexpected problems like one or several people in the waiting list being kicked out of the ˜room all of a sudden without explanation for the user. Normally our consultants are on the air for one hour; after this time frame another consultant comes into the same chat room and normally he gets the remaining waiting list from the previous consultant and the previous hour of chat. Sometimes but often, the new consultant coming in sees the first one or the first two of the wainting list kicked out of the list : he then takes the second or third one in the old waiting list.
View 1 Replies
Oct 29, 2010
I've googled this and come up empty. All I am trying to do is create a netstream and assign a group to it like so:
var netstream;
var groupSpec;
groupSpec = new GroupSpecifier("foo");
trace("groupSpec: "+ groupSpec);
[Code]...
If I remove the groupSpec optional parameter I successfully connect the NetStream. According to the docs [on this page] I should be able to identify a GroupSpecifier in the NetStream constructor.
Is this a bug? Is there another way to do this?
View 8 Replies
Oct 12, 2010
As stated in the title, can FMS and my Linux server share the same IP or must they be differemt?
View 12 Replies
Oct 16, 2009
I have 3 functions in my main document class that I want to execute when the main timeline reaches a particular frame number. how do I do that?
see the code and comments
public function mainClass()
{
//stage declaraction
stage.align = StageAlign.TOP_LEFT;
[Code]....
View 5 Replies
Jan 22, 2009
Should I delete the main.far and apply my main.asc?
View 5 Replies
Feb 21, 2012
How can I use md5 function in main.asc. I am passing md5 token to main.asc, but I can not calculate md5 value in main.asc.
View 3 Replies
Mar 30, 2010
I am running FMS 3.5.2 on Windows Server 2008. The server only has 40GB free. Is it possible to store media on an external drive connected to the FMS? Then have my http or rtmp requests go to the external. Am I making sense? I'm sure there is a script to accomplish this, but I am afraid it will degrade the media files.
View 4 Replies
Nov 21, 2011
I have tried to put main.asc sample file on my live application, removed main.far file and restarted my FMS, after that, i couldn't use FMLE on it, it generates an error !how to put properly the main.asc on FMS 4 (it works good for FMS 3.5)
View 14 Replies
Apr 3, 2012
I am trying to collect appstats using this code in main.asc. What is wrong here?
[Code]...
View 5 Replies
Sep 19, 2011
I installed the FMS 4.5 on a debian system already running an apache web server. I configured the httpd.conf as mentioned in d6093a7e2f8312a374a1bde-8000.html but when i call a streaming url e.g. http://<IP>/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8 the request is still handled by the old apache, not by the FMS
View 9 Replies
Jul 29, 2009
How can I detect in my Main.asc if the live stream is in the VP6 format or H.265 format?
View 2 Replies
Jan 7, 2012
I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.
I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.
My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."
The only way i know to fix this - is to change the security settings of flash - not very user friendly!
So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.
View 1 Replies
Jan 24, 2011
All I can find is this discussion but there is no answer to my case.Our company is developing an application, which connects to https server when a client is joining/leaving the server. Here is a part of main.asc file:
application.onConnect = function(client, meetingId, mettingAttendeeId){
if(mettingAttendeeId){
trace('User client : "'+this.name+'" connected');
[code].....
View 2 Replies
Nov 29, 2011
I'm going to setup a web server for streaming h.264 video for flash player and ios device.I know that I need the vod with HDS and HLS, and I don't need real live stream recording.At this stage, I have configured my apache server and use modules in FMS.I have referred to this document,[URL]It seems works fine now.Because I don't need to use FMS any more in my environment, what's the limitation I need to concern in terms of license, performance, etc. ?
View 4 Replies
Sep 30, 2009
Basically trying to update a "userlist" shared object everytime someone connects.Administration console live log reads:"Sending error message: ...main.asc: line 12: TypeError: this.usersSO has no properties"
I'm connected ok. Here's the server code Doesn't like "usersSO.setProperty()" call:
application.onAppStart = function(){ this.uniqueID=1; this.users = new Object(); this.usersSo = SharedObject.get("userlist", false); }
[code].....
View 2 Replies
Aug 12, 2009
I need the main.asc file to return the current directory listing to a flash application.
[Code]...
View 1 Replies
Oct 21, 2010
I'm totally new and in the absolute dark here. I have installed FMS on a server in the TV station in which I work. I am trying to figure out how to stream video from Adobe Flash Media Live Encoder on an outside computer, back into the FMS at our station. I have no idea what the FMS URL is that I need to plug in to the Flash Media Live Encoder in order to reach the FMS back at our station.
Do I need to have something housed on an ftp site? We have a website and I can put whatever I need to there if that is indeed what I need to do. Not sure what the heck I'm doing here, but I'd LOVE to figure it out. I know it's not a lot to go on,
View 1 Replies
Aug 22, 2010
I have below code
[Code]....
I need this application read from exteral xml file not in it.
View 28 Replies
Jan 23, 2012
We have an application that so far uses AS3/AMFPHP, but we are finding this "request-response" model limited and feel we could make better use of sockets to deliver a more streamlined experience.The application is primarily a data-application containing no media streams.We want to open a socket to FMIS and use this as a pipe in which to stream data to and from the application.Consider this situation however, when values can be adapted externally outside of the FMS application: Example:A user who connects with $0.00 at the start of a Flash Client session, may topup money, via paypal externally. At this successful point, the users database value has $10.00, but FMS is still $0.00.How can FMS be informed of an external event such as this and update the client accordingly in real time?
View 1 Replies
Nov 10, 2009
Can Adobe Flash Media Streaming Server 3.5 run on AMD Athlon Dual Sock Quad Core?I just requested a Dell server to be added to our farm to run as a Media Server and to my surprise, while reading the requirements for FMS it states the following: 3.2GHz Intel® Pentium® 4 processor (dual Intel Xeon® or faster recommended)
View 2 Replies
Sep 7, 2010
I have flash application with main document class, components which are on the scene are instancied at runtime, contrustor of these components are call before main class, but i'd like to execute code before main class and components instanciation, how can i do this ? i tried to create an actionscript layer at frame 1 but still not work.
View 4 Replies
Jan 6, 2011
Got a really big problem here. I keep on getting "NetConnection.Connect.Failed" when I load a .asc file on my main.asc file, i use the method load() in my code. I really don't understand why this happens, but when i comment out the code that loads the asc file, I can successfully connect to fms. I can't figure out what's happening here. Btw, i'm using fms4 in windows 7 32bit.
View 6 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
Mar 21, 2011
I'm developping a FMS 4 application that read an external stream, and then, republish it in multicast:
1.- So, first of all I open a NetConnection to the remote application. And I associate it to a new Stream created in the application. Then I have the stream available in my application.
nc = new NetConnection();
nc.connect(REMOTE_APPLICATION);
nc.onStatus = function(info)
[Code].....
But, I don't know who would be the client in the registerStream method. Which reference should I add there? Is it possible in this way?
I made another different script that republish that stream in localhost using NetConnection.publish(localhost/sameapplication). It works properly. But I would like to be able of managing it in the other way.
View 2 Replies
Oct 31, 2011
Is it possible with server-side scripting for FMS to call an external program once a stream has been unpublished?
View 2 Replies
Jan 13, 2010
I'm trying to troubleshoot a Flash Media Server working with a little video playback application I wrote a few years ago that has suddenly stopped working.I'm using CS3/Actionscript 3.My app uses the FLVPlayback Component, and was working well last time I checked. I recevied a report that the videos stopped working, and have been looking into it.I figured I'd add a bunch of event listeners to the FLVPlayback's ncMgr.netConnection so I could get debug info on things like io errors, net status, etc.The problem I'm running into is that the netConnection is null when I set it to anything on my Flash Media Server, and adding any event listeners to this netConnection throws errors.Here's what I've tried so far:
Playback of a local FLV file works fine.In the FLVPlayback documentation, I found an example and stole the URL of the stream they were using in the example, and that works fine, although it is an HTTP protocol stream rather than RTMP.Any attempt to access FLV files on my Media Server, which has worked fine in the past, basically cause the FLVPlayback object to sit and hang in "buffering" mode and never progresses beyond this point.The netConnection object in this case is null.Here's my code:[code]........
Again the purpose of this is to troubleshoot the video streaming from the Flash Media Server, and it seems like there is no netconnection to the server being created.Does this mean that the server is not working, or is there a problem with the way I'm trying to access the content on the server?This was all working fine before, and I have set up the server-side application .ASC files and such to allow things to work fine on the server end.
View 6 Replies
Jan 17, 2010
How can we automatically configure edge from the admin console of flash media interactive server?
View 1 Replies