Welcome, Guest
  • Author Topic: anybody used getLiveStreamStats() or getNetStreamStats()  (Read 2864 times)

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    Hi,
    Anybody have use or experience with getLiveStreams() or getNetStreamsStats() method in the applciations.

    Please reply ASAP,

    Regards,
    Abrar.

    dsdsdsdsd

    • Server what's that
    • *
    • Posts: 13
      • View Profile
    abrar, where did you find these functions?

    dsdsdsdsd

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    in serverside action script pdf example that is

    http://download.macromedia.com/pub/flashcom/documentation/FlashCom_SS_ASD.pdf

    function is given below....


    function doGetLiveStreamStats()
    {
       function onGetLiveStreamStats()
       {
          this.onResult = function(info)
          {
             if (info.code != 'NetConnection.Call.Success')
             {
                outputBox.text = 'Call failed: ' + info.description;
             } else
             {
                outputBox.text = 'Info for ' + demo.text + ' returned:' + newline;
                printObj(info,outputBox);
          //      PPMService(myname);
                
             }
          };
       }
       nc.call('getLiveStreamStats', new onGetLiveStreamStats(), demo.text, demo1.text);
    }

    can u tell me how can i get the subccribers and publishers list.

    Regards,
    Abrar.

    webfreelancer

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Bid-Place - The Place to Bid and Sell online!
      • Email
    thats awesome! lets experiment with these! ;)
    Bid-Place.com- The Place to Bid and Sell online!

    dsdsdsdsd

    • Server what's that
    • *
    • Posts: 13
      • View Profile
    Abrar, I searched through the pdf document but did not find 'getLiveStreamStats';

    Quote
    nc.call('getLiveStreamStats', new onGetLiveStreamStats(), demo.text, demo1.text);
    implies that 'getLiveStreamStats' is either a custom or an inherent method running in an application.asp on the FCS;

    I expect that it is a custom built method and that it is capable of only returning the 'Server-Side Information Objects ... Stream information objects';

    as far as your question goes:
    in order to get a list of users ( 'subscribers' ,  'publishers') you will need to build your own custom functions;

    CLIENTSIDE
    1 - you need to know what kind of information you want from each user: username, password, etc
    2 - nc.connect( the_url , prop1 , prop2 , ... )

    SERVERSIDE
    1 - application.onConnect = function ( clientObj , prop1, prop2, ... ){ ... }
    2 - you need a way to store all of the users informations in one place - an array(s)
    3 - you need to build the methods that you want to go through the array(s) to get the info out

    dsdsdsdsd


    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    Thanks dsdsdsdsd ,
    I have used the same method waht u have mentioned and i m able to maintain properties.Also array on server side.But when use flash remoting thru asp it is sending the values after 5 mins . so Pls suggest me the good way of flash remoting using asp.

    Thanks in advance.

    Regards,
    Abrar.

    dsdsdsdsd

    • Server what's that
    • *
    • Posts: 13
      • View Profile
    I have avoided remoting - as best as I can tell it requires usage og Coldfusion;

    instead I treat my flash.swf as a hub where:
    1 - one spoke is a database connection via .php, .asp, etc via loadVars
    2 - the other spoke is a FCS connection via NetConnection

    in other words I have not successfully made FCS talk  DIRECTLY to a MYSQL database ( or any other database );

    my indirect process requires more overhead ( functions ) in the flash.swf to manage the timing of sending info from database to FCS;

    dsdsdsdsd

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    Hi,
    You mean one of your flash client will communication with FCS and pass this values DB thru asp , php etc.

    i have got the idea but tell me in detail so that i can implement that way .

    Regards,
    Abrar.