ASP / PHP pages: How to get streaming info from a XML file?

Hi all
I am using Adobe Flash Media Streaming Server 3.5 but I can't find any output file (fx a xml file) that I can pull out info from and use on my website via a PHP or ASP script. It could be nice - in the website - to retrieve info like "online users attending", "running / streaming state" (online or offline) and other relevant info about the streaming, so I on the website can display how many that are online when a webtv event is streaming.
I see the the info when I login at the web admin for FMS, but I need a solution that can work with ASP or PHP.
I simply can't find any file / address to get this kind or output out of FMS - can you help?
Thank you
Kind regards,
Jens

hi,
can you share php code for grabbing data. i make php code using "simplexml_load_file" but the problem is it takes 2-3 minutes before it show the result. i want to monitor the current video if stop feeding.
http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname
xml
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<result> 
<level>status</level> 
<code>NetConnection.Call.Success</code>
<timestamp>3/21/2015 7:47:17 AM</timestamp>
<name>_defaultRoot_:_defaultVHost_:::_0</name>
<data> 
<_0>appname</_0> 
</data>
</result>
here;s my php code:amsstats.php
<?php
    $result = simplexml_load_file("http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname");
    echo $result->data[0]->_0;
?>
result:
http://server2/stats/amsstats.php

Similar Messages

  • How to get the number from a xml file to flash as3 Text Box "Get_Days"?

    Hi,
    I have to daily update the number of days finished from the specified days. Say, One work to be finished in 30 days. And the start day is today. So, tomorrow it will be 29 days left. and so on....
    So, instead of reducing one number everyday from the last days number using flash, it will be easy changing in xml file.
    How can I do that?
    I have a simple text box "dynamic text box" and the instance name : "Days_Left". Since I am learner, I cannot make complex projects. I am learning small things with very few lines of code which can be modified using xml files.
    So, Whatever I type in a xml file, it should appear in a text box called "Days_Left".
    Thanks.

    then you can use:
    var currentDate:Date = new Date(); 
    // this is today's date
    var projectDueDate:Date = new Date(2010,11,29); 
    // use whatever date you want for the due date.
    // months are zero-based.  (ie, jan is month 0, dec is month 11.)
    var daysToCompleteProject:Number = (projectDueDate.getTime()-currentDate.getTime())/(1000*60*60*24);
    // this is number of days between currentDate and projectDueDate.  you probably want to round or use days:hours:minutes for your display

  • Need how to get the data from the external file in eCatt

    Hi ,
      Could any body suggest how to get the values from the external file(Excel,CSV file,Text file) and pass it as varaiable in ecatt Test script.
    Problem: Need to execute FK01-Vendor creation Transaction with multiple set of data .As per my understanding we could achive through Variants in Testdata set in eCatt .
    But is there any way to store the data in excell file and get the data and pass it to FK01 Test scripts
    Appreciate response on this

    Hi
    See the links they may be useful
    check these link,
    eCATT- An Introduction
    /people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
    Creating Test Scripts
    /people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
    eCATT Logs
    /people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
    eCATT Scripts Creation – TCD Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
    Creation of Test Data Container
    /people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
    eCATT Scripts Creation - SAPGUI Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
    Integrating ECATT & MERCURY QTP Part -1
    /people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
    Using eCatt to Test Web Dynpro ABAP
    /people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
    and
    -command reference
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    http://prasadbabu.blogspot.com
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    http://www.erpgenie.com/ecatt/index.htm
    hope this helps.
    Reward points for useful Answers
    Regards
    Anji

  • How to get the encoding of a XML file ...

    Hi,
    How do you get the encoding of a XML file?
    For example,
    <?xml version="1.0" encoding="SJIS"?>
    I am trying to retrieve the above encoding="SJIS", but I can't seem to locate the API for doing so.
    Thanks in advance for any help,
    Eric

    Hi ddossot,
    Thanks for your suggestion.
    However, the xerces.jar file that comes with my old tomcat server is an old version and thus, the getEncoding method is not even present in the DocumentImpl class. The option to update to a newer version of tomcat and xerces is not available. What a pity... :-(
    Well, I just have to try to find a way around. Worst case scenario, parse the first line in the xml file myself.
    Regards,
    Eric

  • How to get a sub tag in xml file

    As the xml file is the below thing ------
    <?xml version="1.0" encoding="UTF-8"?>
    <addRequest xmlns:spml="urn:oasis:names:tc:SPML:2:0">
         <data>
         <attributes>
                   <attr name="Objectclass">
                        <value>SafePolicy</value>
                   </attr>
                   <attr name="name">
                        <value>NewPolicy</value>
                   </attr>
                   <attr name="Resource">
                        <value>NewResourceclass</value>
                   </attr>
                   <attr name="Description">
                        <value>This is a New AccessPolicy</value>
                   </attr>
              </attributes>
         </data>
    </addRequest>
    The Schema has only the data and i was able to get the data object and the data can contain any namespace ,so i had the attributes and which inturn contain the attr and value .I have to get the Attributes , so that i can get the attr(name) and value pairs.Initially i did the unmarshal stuff and got until data but giving an error when i try to obtain the other tags .Can any body send the code for obtaining that by using the unmarshalling concept please.I need it .
    Thank you,

    Thank you,
    As i was trying to obtain the input to UI from an xml file by which the axis converts to java objects and inturn have to get the reply as xml file . The error was in the jar files ,when i loaded the jar files another time my code started working.

  • Passing info from a XML file to URLloader

    I am new to Flex (And programming alltogether), so please
    excuse my ignorance when asking this question; but I have to start
    somewhere. :-)
    I have an application using HTTPService that pulls
    information from a XML file and displays an image and text within
    the window depending on the selected item. The image and text
    appears as needed from {data.image} or {data.text} calls to their
    appropriate field. On that same window, I want to add a link button
    that will direct the browser to a new page depending on the
    selected item. I have the link for each item embedded in the XML
    file, but I cannot figure out how to pass the link to the button.
    I have tried to create a function, but the URL isnot passed
    to the broswer. The application tells the browser to go to
    "{data.link}" at the local server, not the actual URL.
    my function looks like this:
    public function newPage():void
    var getLink = '{data.link}';
    var request:URLRequest = new URLRequest(getLink);
    var loader:URLLoader = new URLLoader();
    loader.load(request);
    }

    hi,
    can you share php code for grabbing data. i make php code using "simplexml_load_file" but the problem is it takes 2-3 minutes before it show the result. i want to monitor the current video if stop feeding.
    http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname
    xml
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <result> 
    <level>status</level> 
    <code>NetConnection.Call.Success</code>
    <timestamp>3/21/2015 7:47:17 AM</timestamp>
    <name>_defaultRoot_:_defaultVHost_:::_0</name>
    <data> 
    <_0>appname</_0> 
    </data>
    </result>
    here;s my php code:amsstats.php
    <?php
        $result = simplexml_load_file("http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname");
        echo $result->data[0]->_0;
    ?>
    result:
    http://server2/stats/amsstats.php

  • How to populate a form from an xml file with multiple records

    I want to be able to create a single form that will add pages as needed based upon the number of records being imported from an xml file.
    I have an IRS form that does this exactly, but I do not know how to re-create it.  I entered data into the form, then exported that data to xml.  Then I opened that xml file in excel and added more records (this is just an easy way to manage the xml data in a tabular form).  Then I import the changed xml file into the IRS form and it adds as many pages as I have records.  Perfect!  Unfortunately, I cannot edit the form to examine the technique.  It does not appear to be relying upon any additional local javascript files.  It does use an 'add page' button which may suggest the form is using the template .spawn() technique, but when I try that in my own form, it gives me unique field names for each page which are then not consistent with the xml data.  Hopefully someone can help me understand what I am missing.

    did you want
    <record>0
    <data>"11.97.23.174/32"
    <record>address <data>
    <record>address <data>
    <record>subnet <data>
    <record>ip <data>"10.97.23.174"</data></record>
    </data></record>
    </data></record>
    </data></record>
    </data></record>
    or
    <record>0
    <data>"11.97.23.174/32"
    <record>address <data>
    <record>address <data>
    <record>subnet <data>
    <record>ip <data>"10.97.23.174"</data></record>

  • How to generate GUI code from parsed XML file?

    hai,
    I have to generate GUI code after parsing any configuration XML file as input.Now i have parsed my XML file and got its attributed and i want to get some idea of how to map the parsed XML attributes to the java code to build GUI code.

    Hello,
    1. I like to create data type from a XML file structure, which contains the data structure ?
    XML fields will need to be taken note of to see which is repeating or not. You can also load the XML into a third-party tool such as Altova XML Spy and then generate an XSD from there. You will need to import the XSDs into PI under external definitions. However, this does not guarantee business interoperability, as such, it is always best to ask the provider for the XSDs or WSDL. It will also save you a lot of time from guessing which fields are needed or not.
    2. How to create custom node function in graphical mapping editor ?
    In your graphical mapping editor, on the lowest left corner, there is an icon there that says Create New Function. You must take into account their return types:
    1. Single Values = String
    2. Queue/Context (no return type) thus resultList is used.
    Hope this helps,
    Mark

  • Custom Connection info from an XML file

    I am writing a class that implements OnBeforeChangeUserProfile PEI. I will connect to a database to verify information. I want to be able to load the connection information from an XML file so that I won't have to compile the code for different servers. Where would I put that XML file, is there a structure that I should use?
    Oguz

    You should be able to use a VarPack:
    http://www.plumtree.com/EnterpriseWebDevelopmentDocumentation/index.asp?pagename=UsefulToolsObjects/VarPack/Quickstart_VarPack_intro.htm

  • How to display Japanese text from an XML file

    Hiya,
    I have various adapted mp3 players [called playlists on my site] which retrieve the songs and song titles/artists from an XML file. One of them plays Japanese music.
    Most of the tracks are in English but I now have a couple of songs with Japanese titles and file names which I can't get to preview/display in Flash Pro CS5 [Mac]. I can type static Japanese text and it displays fine but Flash seems to be having a problem with the Japanese from the XML file.
    Though I can find the English titles, etc, it would be nice if there were a way to display Japanese text from a 'multi-lingual' [English and Japanese] XML file [probably something really easy].
    Thanks a bunch.
    steve

    This should help you:
    http://http://www.packtpub.com/article/working-with-xml-in-flex3-and-java-1http://www.packtpub.com/article/working-with-xml-in-flex3-and-java-1

  • How to read configuration data from an xml file (not web.xml)?

    Hi,
    I want to separate the application specific configuration parameters in a separate xml file and read them as and when they are needed? I know that I can use the wb.xml but I want to separate them in a different xml file because I don't want the web.xml file to be played around later after deployment. If any change is needed then it should be done in the application-config.xml.
    How can I read the parameters from this xml file in my jsp code and also what should be the location of this file if I have
    ../webapps/Root/application
    directoty structure ?
    Any help is greatly appreciated.

    can you give an example of a property file and also
    it is loaded in the jsp ?Hmm... loading properties in a JSP is not a very good idea. You should do it in a separate class, rather than mixing the logic with the display logic.
    Properties properties = new Properties();
    properties.load(UtilClass.class.getResourceAsStream("config.properties"));
    // Add a try - catch block around the load
    // for IOException...

  • Need to get mass info from my XML library file

    Hi. A while ago I was trying to set up my computer so that a user other than me could play my iTunes songs but not be able to delete them. In the course of that I somehow moved a file I shouldn't have and iTunes lost all my info. I finally managed to get it to find all my songs again but it lost all the playlists and playcount info. I really dig the play count stuff and like it to be accurate. I have a copy of my old library xml file and have been going through it, finding song names and their play counts and then manually playing that song however many times in iTunes to make it up to date. But it is taking forever. I've been working on it for a few months and only have 1200 songs done out of 5600.
    I was wondering if someone had an easier way. I'm hoping maybe a simple program that could extract the info I need and put it in a .txt file or something. I don't mind doing the iTunes bit myself but there is so much information that I don't need in there it seriously slows the process down. Here's an example of the format:
    <key>Track ID</key><integer>1210</integer>
                   <key>Name</key><string>Sell Out</string>
                   <key>Artist</key><string>Reel Big Fish</string>
                   <key>Album</key><string>Turn The Radio Off</string>
                   <key>Genre</key><string>Rock</string>
                   <key>Kind</key><string>AAC audio file</string>
                   <key>Size</key><integer>3725167</integer>
                   <key>Total Time</key><integer>227439</integer>
                   <key>Disc Number</key><integer>1</integer>
                   <key>Disc Count</key><integer>1</integer>
                   <key>Track Number</key><integer>1</integer>
                   <key>Track Count</key><integer>16</integer>
                   <key>Year</key><integer>1996</integer>
                   <key>Date Modified</key><date>2005-02-03T05:32:01Z</date>
                   <key>Date Added</key><date>2005-01-24T04:33:16Z</date>
                   <key>Bit Rate</key><integer>128</integer>
                   <key>Sample Rate</key><integer>44100</integer>
                   <key>Play Count</key><integer>3</integer>
                   <key>Play Date</key><integer>-1092825901</integer>
                   <key>Play Date UTC</key><date>2005-06-21T02:43:15Z</date>
                   <key>Normalization</key><integer>6593</integer>
                   <key>Artwork Count</key><integer>1</integer>
                   <key>Track Type</key><string>File</string>
                   <key>Location</key><string>file://localhost/C:/Documents%20and%20Settings/Owner/My%20Documents/My%20Music/i Tunes/iTunes%20Music/Reel%20Big%20Fish/Turn%20The%20Radio%20Off/01%20Sell%20Out% 201.m4a/</string>
                   <key>File Folder Count</key><integer>4</integer>
                   <key>Library Folder Count</key><integer>1</integer>
              </dict>
              <key>1211</key>
              <dict>
                   <key>Track ID</key><integer>1211</integer>
                   <key>Name</key><string>Trendy</string>
                   <key>Artist</key><string>Reel Big Fish</string>
                   <key>Album</key><string>Turn The Radio Off</string>
                   <key>Genre</key><string>Rock</string>
                   <key>Kind</key><string>AAC audio file</string>
                   <key>Size</key><integer>2382411</integer>
                   <key>Total Time</key><integer>143499</integer>
                   <key>Disc Number</key><integer>1</integer>
                   <key>Disc Count</key><integer>1</integer>
                   <key>Track Number</key><integer>2</integer>
                   <key>Track Count</key><integer>16</integer>
                   <key>Year</key><integer>1996</integer>
                   <key>Date Modified</key><date>2005-02-03T05:32:15Z</date>
                   <key>Date Added</key><date>2005-01-24T04:33:43Z</date>
                   <key>Bit Rate</key><integer>128</integer>
                   <key>Sample Rate</key><integer>44100</integer>
                   <key>Play Count</key><integer>3</integer>
                   <key>Play Date</key><integer>-1092825900</integer>
                   <key>Play Date UTC</key><date>2005-06-21T02:43:16Z</date>
                   <key>Normalization</key><integer>4972</integer>
                   <key>Artwork Count</key><integer>1</integer>
                   <key>Track Type</key><string>File</string>
                   <key>Location</key><string>file://localhost/C:/Documents%20and%20Settings/Owner/My%20Documents/My%20Music/i Tunes/iTunes%20Music/Reel%20Big%20Fish/Turn%20The%20Radio%20Off/02%20Trendy%201. m4a/</string>
                   <key>File Folder Count</key><integer>4</integer>
                   <key>Library Folder Count</key><i

    If there was a program that could delete everything except the Name line and the Play count line...
    I don't know. Is that just wishful thinking?
    Thanks for the help.

  • How to get the "encoding" of a XML file using JDOM

    As in XML file, <?xml version="1.0" encoding="UTF-8" ?> indicates the encoding of this file
    while using JDOM to parse a XML file, how can I get the encoding type?
    thanx!!!

    What my program do is to get the encoding of XML files and convert them to UTF-8 encoding files, while I need this "encoding" information of the original XML document thus I can convert...
    After reading specifications and JDOM docs, the truth turns to be disappointed, no function is provided to get this information in JDOM level 2(the current released one), while it's promissed that this function will be provided in JDOM level API....
    Thanx all for your help and attention!!!

  • How to read domain info from "config.xml"

    Is it possilble to access information about the domain (say, the notes) from
    the
    config.xml? If it is, how? Also, is it possible to add an attribute to the
    root ("domain")
    element and, again, access it programmatically?
    Thank you,
    Vladimir Grabarchuk

    "vladchuk" <[email protected]> wrote in message
    news:3aca8370$[email protected]..
    Is it possilble to access information about the domain (say, the notes)from
    the
    config.xml? If it is, how?Just get the DomainMBean and invoke getNotes() on it. For information on how
    to get MBeans see
    http://e-docs.bea.com/wls/docs60/isv/overview.html &
    http://e-docs.bea.com/wls/docs60/isv/program.html
    Also, is it possible to add an attribute to the
    root ("domain")
    element and, again, access it programmatically?
    Thank you,
    Vladimir Grabarchuk

  • How to get all TextFrame from ImportedPage INDD Files?

    Hi everyone!
    Do you know the javascript scripts to get all textFrames in importedPage (.indd file)? Is it posible to do that or have some trick to do it?

    Use
    JDR_UTILS.LISTDOCUMENTS
    Use this API to list of all OA Framework the documents in a path/module. This script is very handy, as it provides a list of all the desired documents/extensions/personalizations in one go.
    DECLARE
    BEGIN
    jdr_utils.listdocuments('/oracle/apps/po/setup', TRUE);
    END;
    Thanks
    --Anil
    oracleanil.blogspot.com

Maybe you are looking for

  • Cannot install safari 4.0.3 on mac os x 10.6

    hey i'm having trouble installing safari 4.0.3 so that i can use itunes 9. when i open the install package just before installation, it gives me a warning saying that i cannot install safari 4.0.3 because i need to run mac os x 10.5.8 even though i'm

  • InDesign Folio Builder Passwort Limitation

    Hi, please do NOT move this to the DPS Threads as it is a InDesign Software Question/Problem.  (only move it, if the programming folk doing the Folio Producer thing lives at DPS) I have already started a thread in DPS Forums how to overcome the probl

  • Error message " [RunQueryToServer] Job Not Found " while editing Schedules

    Hi, We are on BPC 7.5 NW. While trying to Edit Schedules in Datamanager , an error message is received " [RunQueryToServer] Job Not Found ". Could anyone suggest what could be the reason for the issue, is it admin rights of the user involved ? Please

  • Do need RA in MTO?

    Hello Gurus    In Make-To-Order,  use valued sale order stock and sale order carry cost and revenue. I need Result Analysis?  If required, what is the process flow? production order only perform wip no settlement? Please help me,thank you.

  • In-house vs outsourced

    dear experts, I have a broadbased question to ask regarding modes of bw implementation. what's the difference , if any, between the 2 types of bw project : 1. Using External bw consulting firm to implement global project with internal bw staff attach