A User Count in a Flash Media Server Application

hello guys, first of all, sorry for my english...
i am making a flash media server application and i want users to see that how many users are currently connected to this application...
i have searched on google for 2 days and i couldnt find a good tutorial for AS3.
i have looked at fmsguru and some other tutorial websites but those wasn't enough for me to succes...
what i am trying to make is; a text area or dynamic text (i dont know which is most suitable for this purpose) which shows the numbers of connected user and i want it change immediately when a user connects or disconnects...
i know there is an array as "application.clients" and i know i should use "application.clients.length" in "main.asc" file to find the number of connected users BUT i can't get this number to the text area or dynamic text in my "swf file".
PLEASE help me by explaining a simple application which uses a "main.asc" file, an "action script" file and a "swf" file. and how to get the number of "application.clients.length", how to send (or call or get) it to the "action script" file, how to show this number in a text field or dynamic text...
i will be very appreciated if someone explain in AS3 and make me success...
thanks for reading...

well here you don't even need the button just tell your textfield to update everytime the server calls after a connection or disconnection. Do you know how to write actionscript at all? Because you would be well advised not to attempt media server stuff unless you know how to do the basics. Maybe you could start out with some client only applications.
import mx.controls.TextArea;
import mx.controls.Button;
import mx.utils.Delegate;
class SimpleChat_call extends MovieClip {
private var myTextArea:TextArea;
private var myButton:Button;
private var _nc:NetConnection;
private var _chatSO:SharedObject;
private function onLoad() {
myButton.addEventListener("click", Delegate.create(this, onUserCount));
public function connect( rtmpString:String) {
_nc = new NetConnection();
_nc.owner = this;
_nc.onStatus = function ( info ) {
if(info.code == "NetConnection.Connect.Success") {
trace("connected successfully");
this.owner.connectSO( this );
_nc.receiveUsercount = function (count) {
var myTextArea = this.owner.myTextArea;
myTextArea.text = count;
_nc.connect(rtmpString);
private function connectSO( nc ) {
_chatSO.connect( nc );
you didn't even try what i suggested did you because it would have worked without changing the client

Similar Messages

  • Starting with Flash Media Server 3

    Hi All, im thinking in start wiht FMS3 developing a flash
    phone, in the first version the users logged in the flash media
    server could call another users logged into the FMS.
    I see samples that open a live stream between 2 users that
    open a swf, both users publish and dowload a stream with a specific
    name, It is the only way to open a live stream between 2 users?
    Any ideas would be appreciated.
    Regards
    Nacho.

    Hi All, im thinking in start wiht FMS3 developing a flash
    phone, in the first version the users logged in the flash media
    server could call another users logged into the FMS.
    I see samples that open a live stream between 2 users that
    open a swf, both users publish and dowload a stream with a specific
    name, It is the only way to open a live stream between 2 users?
    Any ideas would be appreciated.
    Regards
    Nacho.

  • Integrating Flash Media Server with other formats

    I would like to create a standard screen/player that can play
    any of the following formats:
    windows media files, all flash files, quick time files, real
    player files.
    So, for example, lets say I want to manipulate the screen to
    be an exact aspect ratio and have the same skin, and exact same
    controls as my flash files, but I don't want to work with Real
    Server or a Windows Media Server to serve these files what is the
    best approach to take ? i.e. a "Standardized" look and feel for all
    the formats listed.
    Where would I be able to get information that will help me
    achieve this ?

    There are two parts to this,
    Flash Media Server application - both client and server side. Check out the video conference app here http://www.adobe.com/devnet/flashmediaserver/sample_apps.html.
    The client side app will be a .swf file which you can develop in Flash/Flex.
    Second, you will have to embed this swf file in your asp.net page that will be delivered to browsers. I am not an expert in asp.net but googled a bit and get a feeling it's possible using
    tag.
    Also don't forget to check this link http://renaun.com/blog/2006/10/28/139/ for video conferencing app using flex and FMS.

  • How to get list of logged-in users from Flash Media Server in a Flash programm? (Or login/logout notifications)

    Hi there,
    I'm Very sorry for asking this. I guess it's a very basic problem, but I'm very new to Flash and Flash media Server and I need a very fast answer...
    Currently I'm working on a Director project using a flash program which connects to Flash Media Server (I guess version 3, it's quite old). Unfortunately they forgot to make a flash method to send the actual userlist (or a notification when someone logged in or out) to Director. AND, unfortunately, they lost the source code of that flash programm, so I cannot look into it or alter it *sigh*.
    Now I want to do a new flash programm which covers the old one, letting all known methods "pass trough" and building an additional method to gain the user list (or login/out notification).
    How do I get the login information from Flash Media Server? (Would be good if you could provide an idea already for flash code... as I said I'm a tard at flash till now)
    Thank you so much. And I hope you understand my situation asking here...
    Jana

    hparmar : yes, that's what I feared... I hoped it would be possible to tell the server from which application I do need the login information. What a mess.
    Dimo Hristov: thanks for your offer! I already tried decompiling the flash program with the shareware version of Trillix Decompiler. It only decompiled the UI (in a terrible way) but no source code at all. It was the shareware version where I can decompile 2 or 3 programms to test the software. Are you sure the non-free version of Trilix Flash Decompiler will do..?

  • User ID in Flash Media Server log files?

    We may be using Flash Media Server in an intranet only scenario.  All users will be watching the videos from Windows boxes.   Our users who are creating the videos want to track usage by user ID.  Does the server log the client's user ID? Is that what c-client-id is?  If c-client-id is used to store Windows user name do I need to turn on AD/windows authentication to get that info?  I see that IP address is stored, but it would be simpler if the user Id were in the log file.

    Hi,
    c-client-id field denotes the unique client-id assigned by FMS to a connecting client. This id is valid from the time "connect" event is received in the access.00.log to the time "disconnect" event is received. It is not the Windows user-id.
    You  would have to track the usage based on the c-ip field.
    Thanks
    Mamata

  • Problem with NetConnection in Adobe AIR(Flex) using Flash Media Server.

    Hi
    I am creating a small chat application using Flash Media server. I have already created all my user interface components in Flex(Adobe AIR).In this application rather than sending text messages user can also  send  file to another user in his friend list.
    problem what i am facing is, when i am sending file through FMS most of time it send successfully but for some files while sending  application loss netconnection.
    so i would like to know, rather than closing application what are other condition when FMS loses network connection?
    Any help would be appreciated .
    Thanks.

    Hi. It looks like your code is not finding the mp3. At least,
    I can reproduce your error code by removing the mp3 from the
    directory, or renaming it.
    Btw, if you test with FF instead of IE, you'd see the error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
    Stream Error.
    at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
    Hope that helps.

  • Beginners guide to integrating Flash Media Server 2?

    I'm a newbit to Flasha dn flash media server and need some
    help with integrating the two products. We've just purchased Flash
    Media Server 2 to stream user created videos to a website. Idealy
    we would like to use the FlvPlayBack component placed on the stage
    to display the FLV file from the media server, but cannont get the
    component to access the FLV file.
    Media Server Configuration:
    On the Media Server we created an application (testapp) with
    an default instance (_definst_). The directory path for the
    Appliation looks like this W:\MediaApps\testapp\streams\_definst_\
    The name of the server is MediaServer
    The application and instance are appearing in the Media
    Server Admin manager.
    I've placed an FLV file (Movie.flv) In the _devinst_
    directory.
    Flash FLA file
    Placed FLVPlayback component on the stage
    Set contentpath= rtmp:\\MediaServer\testapp\_definst_\Movie
    Set islive=true
    When I test publish the file, the video does not display?
    Does anyone have any guidance on what I need to do? There
    seems to be a lack of documentation on integrating the media
    server. I looked a sample app called "SimplePB" that works, but
    does not use the FLVPlayback component.
    Any help would be appreciated.
    Thank you,
    John Wallwork

    John,
    For an FLV to stream from FMS, it must be placed in the
    streams/_definst_ directory...
    applications/myApplication/streams/_definst_/myFlv.flv
    Then you would type in the rtmp connection information in the
    contentPath of the FLVPlayback component like this
    rtmp://myRTMPConnectionInfo/myApplication/myFlv
    without the flv extension.
    The documentation comes from the FMS components when you
    install them.
    Here it is...
    To set up your FCS for streaming FLV files:
    Create a folder in your FCS application folder, and give it a
    name such as my_application.
    Copy the main.asc file into the my_application folder.
    Create a folder named streams in the my_application folder.
    Create a folder named _definst_ inside the streams folder.
    Place your FLV files in the _definst_ folder.
    To access your FLV files on the Flash Communication Server,
    use a URL such as rtmp://my_servername/my_application/stream.flv.
    For more information on administering the Flash Communication
    Server, including how to set up a live stream, see the FCS
    documentation at
    www.macromedia.com/support/documentation/en/flashcom/. When playing
    a live stream with FCS, you need to set the FLVPlayback property
    isLive to true. For more information, see FLVPlayback.isLive.
    Regards,
    Bill

  • Audio not streaming correctly from Flash Media Server

    Our company has a Flex application (3.0.2) that is having a problem with audio dropping out in Windows 7.  The problem appears worse with a wireless connection, but it can’t be consistently reproduced there, either.  The only thing known for sure is that the problem has not been seen on any other version of Windows.
    The application thinks the audio is playing, because it is calling the appropriate event listeners triggered when the audio completes and when any audio cue points are hit.  The majority of our audio is streaming via Flash Media Server (3,0,2,201), but the problem was also seen using embedded sound effects.  In one instance, several clicks of a button triggered an error saying the sound effect could not be loaded, and then about a minute later, all the sound effects played at once and the user could then continue with the application.
    The problem has been repeated in IE 8, Firefox 3 and Chrome.

    Thanks for your details. But i need more info.
    Server:
    FMS      3.0.2 ?
    FMS installed in which platform Linux/windows? more details about it.
    Client:
    IE          7
    Flash Player version     ?
    WIndows 7
    Wireless connection - Was the client placed in poor bandwidth.
    Can you get the NetStream status info when u play the audio file.? We can check for the rebuffering happening at the client side.
    Can you run your audio file through flvCheck Tool to check if the media file is in good form. It is available at "\$Root|Flash Media Server\tools\flvcheck.exe"
    Now our intention should be to check the same media file with simpler application (since your production app is complicated) to ensure that the media streaming over 'client to server' is working fine.
    Regards,
    Janaki L

  • Flash Media Server 4.5 unable to start setup on OS X 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)?

    Hi,
    No, that platform is not supported, for any of the FMS versions.

  • Why do I need Flash Media Server

    Hello
    My company produces advergames. We have just made a football
    quiz that streams all questions and video content (quite small
    content). The quiz will be on thousands of websites and will
    probably get over 4 million users within a month.
    Do I need Flash Streaming Media servcie to help me with this
    and can anyone give me any ideas to the problems that may arise
    from streming that much media?
    Many thanks
    Matmijeff

    You need a streaming server to do it. FMS is (IMO) the best
    choice, but there are two others I know of
    Red5 (
    http://osflash.org/red5) . Red5
    is an open source, free (as in beer), java based flash media
    server. It's still in beta, but I hear it's shaping up to be a
    pretty solid server.
    Wowza Media Server (
    http://www.wowzamedia.com)
    also has a java based flash server in beta, and the beta program is
    open to the public. The projected prices (on their site) put the
    price at about half that of FMS.
    Just curious, how many people do you need to serve at once?
    If it's 10 or less, you can use the free FMS developer
    license.

  • Flash Media Server for iPhone

    Hi,
    I am developing an app for iPhone/iPad. The client wants to show some realtime data in the app. Something like a chat application, where even if users don't do anything (flash uses no event), they can see what other users are doing in realtime.
    I went through adobe site to see Flash media Server for mobile device. But I am confused on which version of the server should suit the type of app I am developing.
    Thanks,
    Salim

    I'm more or less in the same boat. I've got the admin console
    up. I am able to run the vodtest application locally pointing the
    video file to rtmp://localhost/vod/sample.flv or using the server
    name instead of localhost as in rtmp://mclmedia/vod/sample.flv
    I can also load the html and swf file to my xp machine that
    has access to the server via our internal network. (DNS isn't
    configured yet) But the connectionFailed message appears when I try
    to call the videos using rtmp://mclmedia/vod/sample.flv

  • FMS4 -Set the Flash Media Server services to Run as Administrator (FMSCore not running)

    Installed fms4  x64 on windows server 2008 to try it out. When i open up task manager to check processes running, FMSCore process does not runhttp://kb2.adobe.com/cps/862/cpsid_86205.htmlI found this in the knowledge base but step3 "Run this program As Administrator" checkbox is greyed out so i cannot do anything. I have stopped and restarted service so many time, rebooted server at least twice.
    Even the video that's supposed to play when you click the start screen is not playingSet the Flash Media Server services to Run as Administrator
    Complete the following steps for each of the following files located in the Flash Media Server root installation folder (C:/Program Files/Adobe/Flash Media Server, by default):
    FMSAdmin.exe
    FMSCore.exe
    FMSMaster.exe
    FMSEdge.exe
    Right-click the file and chooseProperties.
    Select the Compatibility tab and click Change Settings For All Users.
    Select Run This Program As Administrator. Click Apply, and then click OK.
    Complete these steps for each Flash Media Server service.
    Restart the computer.
    Flash Media Server starts when the computer starts.

    Hi,
    Thanks for using FMS4.
    When you said "
    I have stopped and restarted service so many time, rebooted server at least twice. "
    How did you make sure that the services are restarted ? Probably they have not yet started at all ? You need to have admin privileges to start/stop the FMS services. Please make sure you have the admin rights for the logged in user.
    Open a command prompt as admin, and run the following commands :
    net start fms
    net start fmsadmin. 

  • Questions before I buy Flash Media Server 2

    Hi! I'm considering buying Macromedia Flash Media Server 2.
    This software would be a large investment for me, so I'd really
    appreciate any answers or advice that anyone could provide. I just
    have a couple questions:
    1) Can FMS2 be installed on the same server that runs my Web
    sites? I have a Linux server that runs a few sites, and it would be
    ideal to run this software and the sites on the same server. I'm
    also wondering what port it would run on? I've used RealNetworks'
    Helix Server, which requires you to run it on a separate server
    because of port issues. I want to use Flash instead.
    2) Does this software also come with a Flash video player
    that would work with my sites? I want to be able to stream .flv
    videos from my Web sites and have a Flash player launch whenever a
    user selects one of my videos (kind of like how RealPlayer launches
    when you click a RM file). This way, the player wouldn't always be
    embedded in the page. Is that possible? I'm worried about the
    player failing to launch, or people needing to download a special
    player to view my videos.
    Thanks very much!

    1) Yes you can run it on the same box as your web server. You
    can specify any port you wish for FMS to listen on (default is
    1935)
    2) I'm not quite sure I understand. In order to view your
    videos a client will have to have a flash browser plugin installed
    - which should not be a problem as flash browser penetration is
    somewhere in the high 90th percentile (if Adobe is to believed). In
    addition, your flash application will need to make a connection to
    FMS before it can stream videos, so its not quite as simple as
    clicking on a .flv link. Your flash app will have to be embedded in
    a page (think youtube - although youtube does not use FMS).
    If you're not sure if FMS is right for you (and you sound
    like you're not sure), why don't you download the Developer edition
    and test it out? Its free and has all the features of the "full"
    version, but only gives you a license for 10 users.

  • FMLE not connecting to Flash Media Server

    I have two laptops with windows 7 and FMLE 3.2 and FMS 4.5 in them. Laptop A is working perfectly with the default settings but i cannot connect to FMS with laptop B. I have tried turning windows firewall off, setting fmscore, fmscore and fmsmaster to run under administrator privileges.
    The FMS starts correctly on laptop B (i compared the log-files on laptop a and b) and here is edge.00.log from laptop B (i censored my ip and host):
    #Date: 2012-08-09
    #Fields: date          time          x-pid          x-status          x-ctx          x-comment
    2012-08-09          12:37:37          3432          (i)2581173          FMS detected IPv6 protocol stack!          -
    2012-08-09          12:37:37          3432          (i)2581173          FMS config <NetworkingIPv6 enable=false>          -
    2012-08-09          12:37:37          3432          (i)2581173          FMS running in IPv4 protocol stack mode!          -
    2012-08-09          12:37:37          3432          (i)2581173          Host: myhost IPv4: myip      -
    2012-08-09          12:37:37          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4          -
    2012-08-09          12:37:38          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : 1935/v4          -
    2012-08-09          12:37:38          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : 80/v4          -
    2012-08-09          12:37:39          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : myip:19350 (rtmfp-core)/v4          -
    2012-08-09          12:37:39          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : 127.0.0.1:19350 (rtmfp-core)/v4          -
    2012-08-09          12:37:39          3432          (i)2631509          Public rtmfp-core addresses for listener _defaultRoot__edge1 are: myip:19350          -
    2012-08-09          12:37:39          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : myip:1935 (rtmfp)/v4          -
    2012-08-09          12:37:39          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : 127.0.0.1:1935 (rtmfp)/v4          -
    2012-08-09          12:37:39          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : myip:80 (rtmfp)/v4          -
    2012-08-09          12:37:39          3432          (i)2631174          Listener started ( _defaultRoot__edge1 ) : 127.0.0.1:80 (rtmfp)/v4          -
    When i hit Connect button in FMLE i get the "Cannot connect to primary server" - error. When i change the FMS-Url to the ip-address of my laptop A i can connect to its FMS. The default FMS Url is rtmp://localhost/live and  Stream: "mystream@38220" (this is working in laptop A).
    I downloaded TCPView and compared whats happening with the laptops when i hit the Connect button. On laptop B FMLE sends bytes to FMSEdge and it responds with 1 byte and then nothing happens. On laptop A same thing happens but it opens up FMSCore and the stream starts going live.
    Apparently the FMS had worked on laptop B before but then it stopped working due to reasons unknown. I tried reinstalling it with no results and now im clueless. I also tried the fmscheck and it said it cannot connect to FMS. It seems the FMSEdge is not behaving correctly or something is blocking the traffic between the programs. Please help.

    Access log looks like this:
    #Date: 2012-08-09
    #Fields: x-event          x-category          date          time          tz          x-ctx          s-ip          x-pid          x-cpu-load          x-mem-load          x-adaptor          x-vhost          x-app          x-appinst          x-duration          x-status          c-ip          c-proto          c-proto-ver          s-uri          cs-uri-stem          cs-uri-query          c-referrer          c-user-agent          c-client-id          cs-bytes          sc-bytes          c-connect-type          x-sname          x-sname-query          x-suri-query          x-suri-stem          x-suri          x-file-name          x-file-ext          x-file-size          x-file-length          x-spos          c-spos          cs-stream-bytes          sc-stream-bytes          x-service-name          x-sc-qos-bytes          x-comment          x-eid          x-sid          x-trans-sname          x-trans-sname-query          x-trans-file-ext          x-trans-mode          x-soffset          x-codec-type          x-codec          x-plugin          x-page-url          x-smax-rec-size          x-smax-rec-duration          x-forwarded-for
    server-start          server          2012-08-09          12:35:42          FLE Daylight Time          -          192.194.211.110          7492          0          48          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -          -
    Then there is the master log:
    #Date: 2012-08-14
    #Fields: date          time          x-pid          x-status          x-ctx          x-comment
    2012-08-14          13:30:12          3216          (i)2581173          FMS detected IPv6 protocol stack!          -
    2012-08-14          13:30:12          3216          (i)2581173          FMS config <NetworkingIPv6 enable=false>          -
    2012-08-14          13:30:12          3216          (i)2581173          FMS running in IPv4 protocol stack mode!          -
    2012-08-14          13:30:12          3216          (i)2581173          Host: Tatu-PC IPv4: 192.194.211.110          -
    2012-08-14          13:30:12          3216          (i)2571011          Server starting...          -
    2012-08-14          13:30:12          3216          (i)2581224          Edge (2992) started, arguments : -edgeports ":1935,80" -coreports "localhost:19350" -conf "C:\Program Files\Adobe\Flash Media Server 4.5\conf\server.xml" -adaptor "_defaultRoot_" -name "_defaultRoot__edge1" -edgename "edge1".          -
    2012-08-14          13:30:12          3216          (i)2571111          Server started (C:\Program Files\Adobe\Flash Media Server 4.5\conf\server.xml).          -
    And the core log
    #Version: 1.0
    #Start-Date: 2012-08-09 09:35:26
    #Software: Adobe Flash Media Server 4.5.0 r297 x86
    #Date: 2012-08-09
    #Fields: date          time          x-pid          x-status          x-ctx          x-comment
    2012-08-09          09:35:26          5380          (e)2571122          Server aborted.          -
    #Date: 2012-08-09
    #Fields: date          time          x-pid          x-status          x-ctx          x-comment
    2012-08-09          11:51:27          1340          (e)2571122          Server aborted.          -
    #Date: 2012-08-09
    #Fields: date          time          x-pid          x-status          x-ctx          x-comment
    2012-08-09          11:51:36          7848          (e)2571122          Server aborted.          -
    #Date: 2012-08-09
    #Fields: date          time          x-pid          x-status          x-ctx          x-comment
    2012-08-09          12:35:43          7492          (e)2571122          Server aborted.          -
    I tried connecting to localhost:1935 with telnet and typing something and then watching what happens in TCPView. It says that the fmsedge process listening to port 1935 establishes the connection and receives the bytes, though it closes it after few seconds probably because it doesnt understand what data i sent. And when FMLE sends 1537 bytes to fmsedge it receives them but nothing happens.

  • Chat extension to flash media server

    Hi,
    We have been using flash media server with great success. We were wondering if the is any software package which works with the server to provide text chat amongst the user. I would think that there is someone who already built the software for a price.

    I am not sure if someone provides such a package. However, in case you are trying to develop such a chat system, there is a tutorial at http://www.adobe.com/devnet/flashmediaserver/articles/first_im_app.html which should help you understand how to build such a system. Also there is one tutorial here at http://www.fmsguru.com/showtutorial.cfm?tutorialID=36 which could help you on this

Maybe you are looking for

  • I HAD MY MACBOOK MEMORY CLEARED AND CANNOT UPLOAD MY IPHOTO ANYMORE

    I recently had my macbook memory cleared and reset to all default settings. I was advised to back up all my personal documents and data as everything will be cleared. However, due to some technical issue (and one of the reason for memory wipe) i had

  • Trigger a process chain(PC) after successfull completion of two other PCs

    Hi All, My requirement is to trigger a Process Chain only after successfull completion of two other process chain which are already scheduled to run at different times. Please tell me how to achieve this into SAP-BW 3.5 Thanks Jharna

  • Does installing many applications in Lumia 800 (Wi...

    I have installed many applications and games in my Lumia 800 (windows 7.5), but I am worried whether installing many applications in a windows phone will ultimately slows down my mobile?

  • Clear Customer with cheque reference at BRS

    Hi, At the time of BRS FF67, can we clear Customer account with Cheque as reference? If so how the system will findout the particular Open Item? i mean, how the system will know that this cheque is to this particular Open Item, and clear it. I know w

  • Grand total showing wrong results

    Hello, I am having one prblem,using obiee 11g. Have a pivot table with 3 columns, one is month and other are showing numbers. For month we show the 2 number columns when i click grand total its showing the wrong total for the second number column. I