Welcome, Guest
  • Author Topic: hi Jorge Solis  (Read 1661 times)

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    hi Jorge Solis
    « on: 06/22/05, 07:11 »
    hi Jorge Solis,
      Actually im working on chat app using fcs server for video chat.Can u pls tell me where sould i write my server side code like application.getAppsStatus etc..
    I want to read the values from fcs (i.e . login time and logout time).

    Thanks in advance,
    Regards,
    Abrar.

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: hi Jorge Solis
    « Reply #1 on: 06/23/05, 05:02 »
     ???

    In a file (usuallynamed main.asc) inside the application folder.

    Jorge

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    Re: hi Jorge Solis
    « Reply #2 on: 06/25/05, 09:30 »
    thanks  Jorge Solis,
    i m using this...And im now using the getLiveStreams() methos which will return the publisher and subscriber  for me in the place of pblisher its retuininh [object objet] .Please can u tell that how i can extract the this and gets it property.
    here is i m calling the function
       nc.call('getLiveStreamStats', new onGetLiveStreamStats(), demo.text, demo1.text);
    ...
    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);
                      
             }
          };
       }
    ....

    function printObj(obj, destination, tabLevel)
    {
       tabLevel = -1;
       //trace("destination = "+destination+"tab level = "+tabLevel+"obj ="+obj);
       if (arguments.length < 2)
       {
          trace('ERROR! you need to supply a text object to output to');
          return;
       }
       if (arguments.length < 3)
       {
          tabLevel = 0;
       }
       for (var prop in obj)
       {
          for (var i = 0; i < tabLevel; i++)
          {
             // insert requested # of tab characters
             destination.text += '\t';
          }
          destination.text += prop + ' = ' + obj[prop] + newline;
          if(prop=="publisher" or prop=="subscriber"){
             for (var prop1 in obj){
                trace("object = "+obj[prop1]);
             }
          }
          if (typeof (obj[prop]) == 'object')
          {
             // recursively call printObj
             printObj(obj[prop], destination, tabLevel + 1);
          }
       }
    }

    ...



    Regards,
    Abrar.