MediaPlayer API to query bitrate of single bitrate stream

I am able to query the bitrates of a dynamic stream usinfg the MediaPlayer API, however I can't seem to find an API to query the bitrate of a non-dynamic stream.
For example for dynamic I can do this:
if (mediaPlayer.isDynamicStream == true)
     var msg:String = "Bitrates: ";
     for (i = 0; i <= mediaPlayer.maxAllowedDynamicStreamIndex; i++) {
          msg = msg + mediaPlayer.getBitrateForDynamicStreamIndex(i) + " kbps, ";
     trace(msg);
However, this API doesn't work if isDYnamicStream is false.
Is there an equivalent way to get the bitrate?
Thanks,
Scott

Hi,
there is no API for this, since the bitrate is obtained from media/@bitrate attribute in f4m and for single bitrate this is optional.
S.

Similar Messages

  • Publish multi-bitrate stream from FMS?

    Hi,
    I have an SSAS app to publish live streaming, you can refer here. Can I do publish multi-bitrate streaming with SSAS code over RTMP ? I read a tutorial, but it over HTTP...
    Mai Huy

    Hi everyone!
    I have question, how can I play Multi Bit-rate, Live, HDS Streaming? I've done huge resarch and couldn't find how to do it.
    I'm decoding stream properly from camera through Adobe Live Media Encoder to AMS.
    everything works fine when I decode single bit rate and play like this:
               var resource : URLResource = new
    URLResource("http://localhost/hds-live/livepkgr/_definst_/liveevent/livestream.f4m");
            var manifest : F4MElement = new F4MElement(resource);
            var mediaPlayerSprite : MediaPlayerSprite = new MediaPlayerSprite();
            mediaPlayerSprite.media = manifest;
            addChild(mediaPlayerSprite);
    with multibitrate - manifest file looks like this:
    <manifest xmlns="http://ns.adobe.com/f4m/1.0">
      <media streamId="livestream1" bitrate="100" />
      <media streamId="livestream2" bitrate="500" />
      <media streamId="livestream3" bitrate="1000" />
    </manifest>

  • Verifying Multi-Bitrate Streaming

    I finally got our FMS 4.5 server up and running and streaming multi-bitrate.  The only problem is I can't seem to verify what stream I'm viewing and I also believe the player is not switching among the various bitrates.  Internally testing among the LAN I'm not viewing the highest quality when I should be, the image appears to be the medium quality stream.  When I test the highest quality stream as a single bitrate stream it's very clear and crisp, but not when I use the multi-bitrate stream. 
    I'm using the StrobeMediaPlayback.swf that came with the server install located here c:\program files\adobe\flash media server 4.5\webroot\swfs\StrobeMediaPlayback.swf  When I right click on the player I am giving an option to select Low, Med, High but it does not work.  Selecting low does not degrade the video and selecting high does not improve the video.  I'm not sure if those options were intended for selecting the various bitrate but it's not working.  I'm not sure if the issue is with the server or the player.  I'm inexperienced with developing a player and unable to create one that offers a button to switch between auto or manually selecting a specific bitrate.
    Can anyone assist with verifying why my multi-bitrate streaming is not switching and perhaps know of a prebuilt player that can offer manual selection of a specific bitrate and toggle between auto and manual mode.

    Hi,
    I'm sorry but that control is not to switch between MBR streams. If you notice it'll give you the same options for a single stream as well. The stream that the client requests for depends upon the bandwith that is currently available. For HTTP streaming to check which stream is being requested, you can check the Apache logs here : <root_install>/Apache2.2/logs/access_log.
    For manual switch you can use  http://osmf.org/dev/2.0gm/debug.html?src=<your-url-here> player. If you're trying a HTTP stream, you may be missing the crossdomain.xml file under <root_install>/webroot, because of which you may be getting the error. Can you try placing a crossdomain.xml and trying? If you still see the error can check the error logs here : <root_install>/Apache2.2/logs/access_log and let me know what it says?
    Thanks,
    Apurva

  • Variable bitrate streaming possible with streaming edition?

    Is bandwidth detection and bitrate adjustment possible with
    Flash Media Streaming Server 3? I know the streaming edition
    doesn't support custom application deployment, so does this mean
    flexible bitrate streaming is not possible?

    you may refer to a good article by David Hassoun on Dynamic
    streaming :
    http://www.adobe.com/devnet/flashmediaserver/articles/dynamic_stream_switching.html
    server-client bandwidth detection is possible with streaming
    edition. The sample code of live/main.asc & void/main.asc uses
    checkbandwidth() to invoke b/w detection.

  • Buffering pauses and audio/video out of sync, single RTMP stream w/ simple embed

    Hello,
    I am running Flash Media Server on my dedicated CentOS host, and finally connected a single RTMP stream fine and am able to embed and play back the stream, but I am getting constant buffering pauses (approx every 5 secs) and audio/video out of sync by at least 5 seconds. My CPU with Flash Live Encoder is a powerhorse, never over 25% processor or ram usage while streaming, and my upload internet speed is averaging 6-8 mbps which should be more than adequate. I fear the issue is server side, however port 1935 is open and in use, not firewalled on CPU nor the host.
    Any suggestions would be great.

    Hello,
    Thanks for the reply, I am using embed code generated with Flash Media Playback, as follows:
    <object width="640" height="480"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param><param name="flashvars" value="src=rtmpt%3A%2F%2F50.62.40.55%3A1935%2Flive%2Fchristmastime&poster=http%3A%2F%2Fsq uarestream.ca%2Fpics%2Fframe.jpg&autoPlay=true&streamType=live&optimizeInitialIndex=false" ></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="480" flashvars="src=rtmpt%3A%2F%2F50.62.40.55%3A1935%2Flive%2Fchristmastime&poster=http%3A%2F% 2Fsquarestream.ca%2Fpics%2Fframe.jpg&autoPlay=true&streamType=live&optimizeInitialIndex=fa lse"></embed></object>

  • Getting different behaviour when query hits a single row?

    Hi
    I have a page where people type in search conditions and when they see the results (an ordinary tabluar report) they can click a certain row to assign the key of that row to a hidden field in my page.
    There's a requirement that if they're clever enough to hit a single matching row, then the key of that row is assigned to my hidden item without them having to go through the stress and hard work related to clicking a link :-)
    So I'll probably make a process that tests to see if their search returns a single row and only do the report if not. But that means performing the resulting SQL twice when there's more than one row.
    Is there a way to have the number of rows returned by the SQL source for a report affect the behaviour of the page? AFAIK the #TOTAL_ROWS# etc. are only applicable in the header & footer of the report region, so I guess there's no way to do what I imagined?
    Jakob

    You could query your rows into a collection and determine the number of records in the collection. Check out the HTMLDB_COLLECTION (APEX_COLLECTION) API section in the HTML DB (APEX) documentation.
    Your multiple record region where they select their row could then be based on:
    SELECT * FROM HTMLDB_COLLECTION WHERE collection_name = 'my collection'
    Mike

  • Query with Apostrophe (single quote)

    Hi all,
    I have noticed that when you enter a search string with an apostrophe (eg. Tito's Station) in a textbox on a form linked to a table and hit the Query button, it generates an sql error. I think this is cos u cannot have an apostrophe (single quote) in the search string in a "where" clause.
    I am using Portal version 3.0.6.6.5 on an 8.1.7 database.
    I have logged a tar (1744105.999) for this but it is said to be a bug (1759202). I wish to enquire whether any of you have had this problem with a later version or at which version leve this bug has been fixed.
    Does any1 know how to limit the text typed into a texbox, so that it wont accept certain characters (eg. the apostrophe key) ??
    Thanks

    Hi Rene'
    Thanks for your help! This will definitely help me alot! I am a little baffled with your code for delimiting the single quote. I tried it and it doesnt work.
    Thanks very much for the response
    Naseem
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rene' Castle ([email protected]):
    This is still an issue in 3.0.8.9.8. You can use a Javascript validation routine to disallow special characters.
    If you want to check to see that they only enter certain things you can do:
    var s = theElement.value;
    var filter=/^[a-zA-Z]{1,}$/;
    if (s.length == 0 ) return true;
    if (filter.test(s))
    return true;
    else
    alert(" Please input a valid character" );
    theElement.focus();
    theElement.select();
    return false;
    The above code would only allow one or more alphabetic characters. You could make it [a-zA-Z0-9] to allow alphanumeric characters. You could also allow anything but specific characters by doing the following:
    var s = theElement.value;
    var filter=/[^']*/;
    if (s.length == 0 ) return true;
    if (filter.test(s))
    alert(" Please input a string without a single quote (') in it" );
    theElement.focus();
    theElement.select();
    return false;
    else
    return true;
    Hope this gets you started.
    Rene'<HR></BLOCKQUOTE>
    null

  • How to make the query in one single query? No Union please....

    Hi,
    I have sets of around 18 queries which is finding counts in many scenarios. I wanted to have a single query for this. which diplays the result in a single row.Is there a way , I heared analytical functions are good options ,but I am new to Oracle . Please help me.
    select count(*) total_count from emp; --100
    select coun(*) MGR_count from emp where job='MGR'-- 10
    select count(*) dept_count from emp where deptno in(10 ,20)-- 75
    output..
    TOTAL_COUNT     MGR_COUNT      DEPT_COUNT
    100                                   10             75
    Thanks

    This:
    select count(*) total_Count
          ,count(decode(job,'MGR',1,null)) mgr_count
          ,count(case when deptno in (10,20) then
                   1
                 else
                   null
                 end
                ) dept_count
    from emp;
    untested

  • Query with using single index

    I have what seems like a pretty straight forward problem. I have a table, say TAB_A that has a NAME, PHONE, SSN along with some other values (no primary key...I know, don't start with me. That's just the way it is.) I want to retrieve records where the NAME or the PHONE, or the SSN match a static value. I realize I could write this as:
    WHERE name = 'Joe' OR phone = '5556667777' or ssn = '012345678'
    However, when you do this (assuming there is a concatenated index on name, phone, ssn), you end up doing an index full scan. If you create three individual indexes on each column then you can write a union query that utilizes the index for each value...eg.
    select...
    where name = 'Joe'
    union
    select...
    where phone = '555667777'
    union
    etc.
    However, here you are writing three separate queries that each do an index range scan. I'm just wondering if there is some way to do this...say with some sort of function based index and a hashing algorithm applied to the data where I can do this in a single index range scan? Any ideas?

    I don't see how a single index entry can point to a row that doesn't exist (in all likelihood).
    Without testing it, I don't see how even a concatenated index could help.
    The rows returned by your query are completely unrelated (unless you find the one person who has all three).
    By the way, 7 posts in 10 years. Now that's what I call a lurker.

  • Is there an API for querying UCM v8.x End Users?

    I am trying to find out what APIs might be available for an IVR application to query the list of end users configured on the UCM.
    This would be for an auto-attendant type app which would be trying to route calls to specific users, so it would need at minimum a destination phone number to transfer the caller to.
    Any pointers to documentation would be appreciated.
    Thanks,
    Bob Kmak
    Convergys

    Hi Bob
    You'd be looking at AXL. Documentation is at developer.cisco.com, log in and from the 'select an API/SDK' box selected Cisco Unified CM Administration XML.
    You can use the API to pull specific XML objects containing all user properties (or lists of XML objects in newer CUCMs), or just do quick DB reads (for example 'select * from enduser') and then do what you will with the results.
    Regards
    Aaron
    Please rate helpful posts..

  • Subject: BW Query Variable – Multiple Single Values

    I have set a characteristic variable on process chain id. In General tab, Variable is u201Cprocess by manual inputu201D.
    In Details tab, I set:
    Variable represents Multiple Single Values, Variable is ready for Input
    When I run my query, I can select multiple process chain ids. Problem is query returns process chain information for only one value (first value entered for process chain id in multiple selections. I have verified process chain information exists for all the multiple values.
    Appreciate any feedback.

    Thanks, I do not find any other restrictions. If I simply remove the variable which lets me spacify multiple single values, I see
    all the process chains. When I  add this variable to query under retsriction and run the query, I see pop-up and I can enter multiple values, but only first one is being searched. There is probably some setting in variable definition somewhere that it only processes first value.
    Is there a way in RSRT to show me entire ABAP code of the query. 
    I ran RSRT set some break points but it is kind hard to troubleshoot. If I had the entire code, I can try to understand what is being done.

  • How to query on a single row form using only one page

    Hi APEX experts, I am just a beginner in apex and I face several problems on development. Despite that the forum helps me a lot and your answers to other people are valuable , I have stacked into something. Could you please someone tell me : if there is a way to define a single row form page based on table in which I could query and update without using a tabular page (to call the single row form). I want only to use only one page. Does APEX has this functionality? Thank you very much?

    I haven't tried it, but I am going to guess that yes it's possible (or if I were going to do this, this is what I'd try and I suspect it will work).
    If you take a moment and step back and look at what the wizard does when building a "form on a table with report", all it does is build two pages with page 1 (report overview with drill-down Edit button or link usually) calling page 2 (form) and setting the PK field on the page 2 form with an automated row fetch process and built-in DML processes. It's not that hard.
    Page 2 really doesn't care what the calling page was in order to query a single row; it just cares that ANY caller sets the primary key value for the ARF process to fetch a row. So I would just make page 2 call itself. This is what I'd do (and you might have to fine-tune little things that I might not have forseen but I think this will work).
    For the sake of example, let's say our table is PARTS and in it is a PART_ID, PART_NUMBER, PART_DESCRIPTION, PART_COST, etc. Assume PART_ID is the primary key and sequentially assigned by the DB in a trigger and is functionally meaningless to the user and is for PK purposes only. Let's assume PART_NUMBER is a unique key (although not the PK) by which the user will "know" a unique row (since the PK of PART_ID is more internal and not meaningful to the user). Assume PART_DESCRIPTION, PART_COST, etc. are just attributes.
    1. Use the wizard and build a "form on a table with report". This is just to get the handy dandy ARF process and DML processes, validations, etc. all generated for you. Let's assume the report page is Page 1 and the form is Page 2.
    2. When done, delete the report page entirely (so delete page 1).
    3. Edit the form page (page 2) and change any branch references from the nonexistent page 1 to now be page 2.
    Now here's the part where something has to set the internal P2_PART_ID field when page 2 is run. So why not set it from itself from something the user will uniquely enter?
    4. Create a P2_PART_NUMBER_FETCH item (text item is fine or if you want a LOV or whatever that's good too....whatever works. For clarity, you might even want to create a separate "search" or "query" region separate and above your existing form region to set this field apart visually so users know it's a search field. Source for this field should be "only when current value in session state is null".
    5. Created some sort of "GO" button to go along with the P2_PART_NUMBER_FETCH field.
    6. Make sure none of your existing post-submit processes fire when GO is pressed (edit all of the computations and validations and processes and ensure that they have conditions such that they do not fire when the submit value is "GO", so like a PL/SQL expression and set to v('REQUEST')<> 'GO').
    7. Add a new validation to your page that only fires when GO is pressed. Have it validate only when GO is pressed. Have it validate that P2_PART_NUMBER_FETCH is not null.
    8. Add a new PL/SQL process to your post-submit processing that only fires when GO is pressed. Have it look up to the database based on P2_PART_NUMBER_FETCH and get the PART_ID that corresponds to the part number the user entered and set the part number, something like this (even better for style and reusability if you embed this in a DB package function and call it):
    SELECT part_id
    INTO :P2_PART_ID
    FROM PARTS
    WHERE PART_NUMBER = :P2_PART_NUMBER_FETCH;
    9. Not sure if the branches that were generated will suffice for this (might need to add a new one...review what you have and see) but the bottom line is that the page should branch to itself (page 2) and not clear the cache.
    10. When the page repaints, since :P2_PART_ID is now populated in session state (again, page 2 should not care how it got populated...only should care that it did get populated by anything (including itself)), the automated row fetch (ARF) should fire and query up the row from the database for editing.

  • How to Trace the single Query Hits for single User

    Hi BW Experts,
    I have one doubt.
    How do we know that How many times one User executed only one Report from last 2 months??
    How do we trace it in BW System
    Please tell me.
    Thanks in advance
    Regards
    Anjali

    Hi Anil,
    Thanks for the reply.
    I checked in RSDDSTAT Table. But I could not understand from that Table.
    How many times 'X' User is executed 'Y' Report (This is single Query/Report only) from last 2 months?
    Regards,
    Anjali

  • Use REST API to query contacts with a field updated since certain time?

    Hello,
    Using the REST API and trying to figure out how I can query for contacts that have had a field updated since a specified time. I've tried using the "lastUpdatedAt" arg, but to me it seems like I'm getting back contacts that maybe haven't had any data change, but were probably sent an email or something of that sort (so the updated at value was changed)
    Is there a way to query for contacts that have had fields change (Like subscriptions, address, title, etc) but exclude those contacts that only have their updated values changes because they were sent an email?
    Thanks!

    Hi Chris,
    lastUpdatedAt or "Date Modified" fields don't change when the contact is sent an email, but rather, when ANY field is modified on the contact record. You can certainly query for and export contacts that had their data touched in some way since a specified time, but it won't be on a per-field basis. There is effectively no field level change history or tracking. You can work around this with extra logic. First, you can get a snapshot of what the values were in the specific fields you want to track across your entire database.
    The next time you run an export using Date Modified, it will contain more records than you might care about, but you can filter offline for the ones you do care about by comparing their before and after values for the specific 'tracked' fields.
    Regards,
    Bojan

  • Need query to convert Single Row Multiple Columns To Multiple rows

    Hi,
    I have a table with single row like below
    Column0 | Column1 | Column2 | Column3 | Column4|
    Value0    | Value1    | Value2    | Value3    |  Value4  |
    Am looking for a query to convert above table data to multiple rows having column name and its value in each row as shown below
    Column0 | Value0
    Column1 | Value1
    Column2 | Value2
    Column3 | Value3
    Column4 | Value4
    Thanks in advance.
    Mohan

    Hi ykMohan,
    Dynamic UNPIVOT can be applied in this case as well.
    CREATE TABLE dbo.T(ID INT,Column0 VARCHAR(99),Column1 VARCHAR(99),Column2 VARCHAR(99),Column3 VARCHAR(99),Column4 VARCHAR(99))
    INSERT INTO T VALUES
    (1,'Value0','Value1','Value2','Value3','Value4'),
    (2,'Value0','Value1','Value2','Value3','Value4');
    DECLARE @columns VARCHAR(MAX)
    SELECT @columns=
    STUFF(
    SELECT ','+ COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME ='T' AND TABLE_SCHEMA='dbo' AND Column_name NOT IN('ID') FOR XML PATH('')
    ),1,1,'')
    DECLARE @Sql NVARCHAR(MAX)
    SET @Sql =
    'SELECT ID, UPT.col,UPT.val FROM T
    UNPIVOT
    (val FOR col IN('+@columns+')) AS UPT'
    EXEC sp_executeSQL @Sql
    DROP TABLE T
    If you have any feedback on our support, you can click
    here.
    Eric Zhang
    TechNet Community Support

Maybe you are looking for

  • WF for parked invoices

    I need to create a workflow for parked invoices and I have a couple of questions. (1) I am copying template WS20001003, but at the end of the WF I want someone to post the invoice, however this WF doent allow you to do that, is there a SAP standard w

  • Stack overflow user profile doesn't display correctly

    The page of Stack overflow user profile is wrongly displayed, blank space on top of page and some info is hidden.

  • Tax code not getting picked up from PO during SES

    Dear Experts, I am looking for configuration where the end user need not enter Tax code during SES. I tried a scenario where I did not maintain any service master and also did not enter any line item in service tab at item level, rather I processed m

  • READ in ECC5.0

    hi,     Kindly guide how to rectify the below given error. Program:  SAPLZAM05  Include:  LZAM05F00  Row:     66 Syntax check warning This warning is only displayed in SLIN The READ variant is obsolete. You should specify the key in the form "k1 = v1

  • Reorganising Folder Structure

    Hi, How do I get iTunes to automatically reorganise the file/folder structure of all my music? I want it to put all the songs in Artist > Album folders. At the moment, I just have a big list of Album folders, which I organised manually myself. I want