OSMF Bitrate Autoswitching for DynamicStreamingResource doesn't work

Hi 
I'm having trouble getting dynamic streaming resources to automatically switch bitrates during playback. This mainly affects MP4 type videos.
The video stream being played stays at the same bitrate forever and never switches despite the network speed being more than adequate.
This problem only occurs when I construct the DynamicStreamingResource manually in the code.
When I use a MediaFactory to read a F4M video stream, it is able to properly auto switch bitrates appropriately when playing back.
I am manually constructing the DynamicStreamingResource in the code and pulling the video sources from a 3rd party web service. I'm placing these video file paths and their respective bitrates into individual DynamicStreamingItems which are then placed into the DynamicStreamingResources' resource vector.
This is what the DynamicStreamingResource object would contain:
DynamicStreamingResource()
Vector[0] = new DynamicStreamingItem(“rtmp://video1.mp4”, 100)
Vector[1] = new DynamicStreamingItem(“rtmp://video2.mp4”, 200)
Vector[2] = new DynamicStreamingItem(“rtmp://video3.mp4”, 300)
Vector[3] = new DynamicStreamingItem(“rtmp://video4.mp4”, 400)
After I attach MetaData for an Akamai authentication token, I then feed the DynamicStreamingResource object into a MediaFactory that has loaded the AkamaiBasicStreamingPlugin because the videos are hosted through Akamai.
The MediaFactory class returns a MediaElement that is Akamai authentication token compatible and I type coerce it into a VideoElement so I can use the smoothing and deblocking features on the video.
At this point, everything works when playing back except for auto bitrate switching.
Can anyone make any suggestions?
Thanks

There are a few points of failure with bitrate switching, some in code, some at the CDN level.
A few things you can do to test / debug would be to try and test each item individually first to be sure that the items are on the server.
for instance you might try:
DynamicStreamingResource()
Vector[0] = new DynamicStreamingItem(“rtmp://video4.mp4”, 400)
If that works, try placing a debug point after your MediaElement is returned from the MediaFactory and the token have been created to ensure it has the - MediaTraitType.DYNAMIC_STREAM
Another option would be to put a listener on the MediaElement to listen for when these traits are added and then ensure that all the elements are there:
I've used similar code to below but just wrote this without context so it may need some modification:
First add a listener:
element.addEventListener(MediaElementEvent.TRAIT_ADD, traitAdded);
A better view of this code:http://pastebin.com/U6104iVR
Then listen :-D:
function traitAdded(event:MediaElementEvent):void {
var element:VideoElement;//should be your video element
          if (event.traitType === withTrait){
                    var dynamicStreamTrait:DynamicStreamTrait = element.getTrait(event.traitType) as DynamicStreamTrait;
  //Make sure autoSwich is true
                    dynamicStreamTrait.autoSwitch = true;
                    dynamicStreamTrait.switchTo(1);
  trace("-----")
                    trace(dynamicStreamTrait.getBitrateForIndex(0));
                    trace(dynamicStreamTrait.getBitrateForIndex(1));
                    trace(dynamicStreamTrait.getBitrateForIndex(2));
  trace("-----")
                    dynamicStreamTrait.addEventListener(DynamicStreamEvent.SWITCHING_CHANGE, function(evt:DynamicStreamEvent):void {
                              if (evt.switching){
  trace("Dynamic stream switching in progress");
                              } else {
                                        trace("Dynamic stream switched to", dynamicStreamTrait.getBitrateForIndex(dynamicStreamTrait.currentIndex));

Similar Messages

  • I cannot access my old email address anymore, however I have used it for my apple ID and now I want to delete it because the account has never been verified in the first place so my password for it doesn't work. What do I do?

    I cannot access my old email address anymore, however I have used it for my apple ID and now I want to delete it because the account has never been verified in the first place so my password for it doesn't work. So when I want to download apps I have to sign in with apple id but I can't so I made a new one, However I can't seem to be able to delete the old one. What do I do?

    You can't merge Apple IDs.  You also can't cancel (delete) and existing ID, you can only choose to stop using it.
    If your old ID was compromised and you can no longer access it, you'll have to contact Apple for assistance.  Go to https://expresslane.apple.com ; click 'See all products and services' at the bottom of the page. In the next page click 'More Products and Services, then 'Apple ID'. In the next page select 'Other Apple ID Topics' then then 'Apple ID account Security’.

  • I have an Iphone 3GS and the app for Facebook doesn't work anymore...

    I have an Iphone 3GS and the app for Facebook doesn't work anymore since last update made yesterday.
    How can I restore it without the last update?
    Or, what can I do to have the Facebook back again on my mobile?
    Thank you for your help.

    Hi Ricoco,
    I too had exact issue what you were experienced, then I went to Apple autorised service center and submitted my earpods, their it worked with all versions of Apple iphones, but it didn't worked on my 3gs. The service technician suggested for OS  upgrade.Then I came home and I took the backup and upgraded 5.1 to 6.1 as he suggested, also it didn't worked. I was totally frustated and suddenly I got an idea!. What a funny thing here is, a safety pin resolved my issue, I took out all dust which was there in the jack hole. Then I check my earpods, it was amazing you know..MY EAR PODS WORKED!.
    If you still have this issue, I hope this will help you.
    Umesh

  • Voice command for Contacts doesn't work after a re...

    Voice command for Contacts doesn't work after a reboot or a contacts restore.
    Steps to reproduce:
    1. Backup contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Back up now.
    2. Edit/save a contact, press and hold the call button, speak contacts name. The voice recognition works fine.
    3. Restore contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Restore.
    4. Reboot phone when prompted.
    5. Press and hold the call button, speak contacts name. The voice recognition does not work.
    Work around:
    Edit and save each contact.
    Additional Information:
    Social integration with contacts also does not work after a reboot. The facebook icon and "See what xxx is up to on Facebook" is not displayed. The same work around "Edit and save each contact" also applies. This occurs using the Nokia N8 and Nokia 808 Pureview.

    Nancy2015 wrote:
    I have my phone paired with my car, I can do everything except it does not recognize any of my contact names. If I try say a contact name, it says "not recognized" but if I say the contacts phone number, the name pops up onthe display in my car.
    Has anyone had this issue, is there a setting I am missing in my phone?
    Hello, 
    This is not necessarily and issue with the phone. It could also be an issue with the car`s bluetooth software that is only limited to some functions like reading your contacts list, last calls, missed calls, etc. which is most likely the basic 2.0 version. 
    The Z30 has the 4.0 version that has a lot more communication capability but if the car`s bluetooth its a lower version, then you will not be able to take full advantage of it unless you upgrade the bluetooth software in your car. Call your dealer and inquire about the bluetooth software upgrade in your car   

  • Quicktime for windows doesn't work, wont let me uninstall or update.Help!

    Quicktime for windows doesn't work, won't let me uninstall (tells me fatal errro) or update (tells me it encountered an error on installation). Help!I am running Windows XP on an Intel pentium PC. Any ideas? Dvora

    When you get this fatal error uninstalling, try a full removal of iTunes and related programs with an installer clean up of any that do not uninstall cleanly:
    Here is a method:
    Download a fresh copy of iTunes and the stand alone version of Quicktime (the one without iTunes)
    http://www.apple.com/quicktime/download/win.html
    http://www.apple.com/itunes/download/
    Download and install Microsoft Installer cleanup utility, there are instructions on the page as well as the download. Note that what you download is the installer not the program – you have to run it to install the program.
    To run the program – All Programs>>Windows Install Cleanup
    http://support.microsoft.com/kb/290301/
    Now use the following method to remove iTunes and its components:
    XP
    http://support.apple.com/kb/HT1925
    Vista
    http://support.apple.com/kb/HT1923
    *If you hit a problem with one of the uninstalls don't worry*, carry on with the deleting of files and folders as directed in the method.
    When you get to deleting Quicktime files in the system32 folder as advised in the method, you can delete any file or folder with Quicktime in the name.
    Restart your PC.
    Run the Microsoft Installer Cleanup Utility. (Start > All Programs > Windows Install Clean Up)
    Remove any references you find to the programs you removed - strictly speaking you only need to worry about those programs where the uninstall failed.
    If you don’t see an entry for one of the programs that did not uninstall, look out for blank entries or numeric entries that look like version numbers e.g. 7.x for Quicktime or 1.x for Bonjour.
    restart your PC
    Install the stand alone Quicktime and check that it works.
    If it does, install iTunes.

  • Textvariable with replacement path for 0CALMONTH doesn't work ...

    Hello expert,
    we have done release upgrade BW 7.01 -> BW 7.3 SPS 04. While checking queries I found out that textvariables with replacementpath for 0CALMONTH doesn't work anymore. In the report I only see the variable name like ZVARXYZ01 but want to see something like 'JAN 2011'.
    As far as I understand 0CALMONTH don't need a texttable. Texts can be found in table T247. I checked the table and all values looks fine.
    Any Idea where the problem is or how I can analyze it?
    Thank you in advance,
    Peter

    Hi Peter
    Please check this link, especially this note for text variable problems after upgrade to 7.3
    Let us know if it helps.
    Think of giving points.
    Regards
    PC

  • Sayit App for Playbook doesn't work

    I cannot get Sayit for the BB Playbook to work. The program states to allow permissions for mic but I don't have any settings to do so After numerous reinstalls (3 different playbooks) still doesn't work. The company doesn't respond to my emails so It leaves me with the impression they are a bogus outfit. Anyone else stuck with apps from BB App world for Playbook that don't work ? Be nice if someone could set up a thread that says which ones work and which don't. This would save time and money for people who pay for an app and then don;t get support ,.At $5.00 per app and maybe thousands of user who download it !!!

    Apple doesn't vet or test apps. those apps meet certain requirements and they're in the app store. Look through there, you'll see plenty of 0 or 1 star apps.
    There are millions of apps and Apple doesn't vet them.
    the facebook app hasn't worked right in years, Apple doesn't care, it's up to Facebook to make their app work. Same applies to Charter
    they will not make a developer make their app work well, they let 'survival of the fittest' rule...good apps get good ratings, bad apps get poor ratings, well rated apps rise to the top, poorly rated apps fall to the bottom.

  • TS3999 Argentina holiday link for iCal doesn't work, please help!!

    İ want to add argentina holiday calendar to my iCal but the link on apple page doesnt work.

    As you say the link doesn't work; neither does its originating domain alone. The note on the page concerned says that the calendar is valid only for 2010 and 2011, so evidently it's been withdrawn and not updated by its originator. I'm afraid that a number of the links on Apple's page have gone dead.

  • [SOLVED] vfs_zip plugin for deadbeef doesn't work

    hello everybody here,
    i found vfs_zip plugin here doesn't work,
    that is, i can import music files from zip archive, but i can't play them-
    if i play those ones, the deadbeef'll be stuck ,even if i try play other files.
    so, any solution here? any idea is appreciated, and thanks in advance:-)
    BTW:
    i have installed libzip in advance, so i think it's not the cause...
    and i've tried deadbeef (from repo) and deadbeef-git (from aur), but still useless, eh
    Last edited by Cravix (2012-05-16 09:54:11)

    PhatalError wrote:
    It's working fine for me, I just zipped up 1GB (262 files) of MP3's to test it out for you, and it's working just fine for me after it imports them into DeaDBeeF.
    Open up a terminal, and type deadbeef and when you try and play the MP3's from the zipfile does it show any type of error message in the terminal? If so, paste it here.
    oh my... I found it actually can play when I tested again to see the err output... sorry to bother you for my carelessness, and thank you very much:-)
    and also, the only problem is it'll take 5s~30s before start playing after click, which made me thought it couldn't work for a year or two... I should say it's much slower than rar reader(see deadbeef archive reader i packaged in aur, you can try it:-D)
    I doubt if it's abnormal, so would you mind sharing with me that how's it going on on your computer? thanks in advanced:-)

  • Subquery for inserting doesn't work in Oracle package

    I have experienced a very strange scenario while inserting data inside a Oracle package.
    I have two tables:
    - table "A"
    Columns: "ID", "Value1", "...."
    - table "A_Backup", which contains backup data for table A. It has one more column "BATCH_NUMBER" than table A
    Columns: "BATCH_NUMBER", "ID", "Value1", "...."
    I created following procedure in a package to backup data from table "A" to "A_Backup".
    procedure proc_backup (v_id in number) is
    declare
    v_batch_number varchar2(20);
    begin
    /** generate a batch number using system date */
    select 'BATCH' || to_char(sysdate, 'YYYYMMDDHH24MISS') into v_batch_number from dual;
    /** insert Batch_NUMBER + data from A into A_BACKUP */
    insert into A_BACKUP (select v_batch_number, id, value1, ... from A where A.id = v_id);
    end proc_backup;
    When I debug the procedure, it will not insert any data into A_BACKUP. Apparently, there are some data in table "A" meets criteria "A.id = v_id".
    The strange thing: If I create same procedure. But this time I didn't put procedure inside the package, insert query will work.
    Please help, I have spent a couple of days on this and never make it work. I also tried cursor, it doesn't work either. It seems Oracle package doesn't support "virtual table" (subquery in insert) or whatever you call it.

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    I don't see any package or test code that calls the procedure or error messages or results from any procedure calls.
    You say you have a problem with a package but don't post the package version of the code you are having a problem with.
    How is anyone supposed to find a problem in code that you don't post? And when you post use \ tags as discussed in the FAQ.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • QT player export function for iPod doesn't work!

    hello
    i just bought QuickTime Pro.
    unfortunately, the export function for iPod (.m4v) doesn't work...
    it stops after a short while and dont't go any further.
    thanx for your help!
    greetings, iMats
    iMac 800MHz PowerPC G4   Mac OS X (10.4.3)  

    While I haven't used it, QT 7 and the iPod preset (H264 encoding) seem to be quite slow compared to other compressors. Many people have mentioned the seeming freeze, while other state that if you let it run long enough it will eventually finish the project. If you don't have the patience to wait, you might want to try exporting to mpeg-4 and see if that works a bit faster.

  • Creativ Cloud for Teams doesn´t work for all members

    Why do the products work for all members except oe? The test version is started here.

    Hi YES-2013,
    Welcome to the Community!
    The Team subscription is fine and everyone should be able to use a full version of the software's, ask him to uninstall & re-install the Adobe Creative cloud desktop application and if that doesn't work then contact our Adobe support via http://www.adobe.com/support/download-install/supportinfo/ and they will help him further.
    -Ankit

  • Purchased  Photoshop & Premier Elements 13 but serial number for PSE doesn't work

    I purchased Photoshop & Premier Elements 13 a couple of days ago and I got the serial numbers by email. The serial number for Premier works, but the number provided for Photoshop doesn't.

    Contact support by web chat.
    Mylenium

  • Apple Modem (for dialup) doesn't work in Lion. Why?

    We have no acceptable alternatives for dialup where I live here. Even dialup is difficult. But the Apple Modem does not work in Lion!
    Anyone know why Apple did that?
    And what alternative is there for us (other than resinstalling Snow Leopard).
    Does Apple not know that there are still PLENTY of places with poor or non-existent Internet services?
    Does anyone know of an option?
    Using a MacBookPro, but the problem appears to be Lion so the hardware would not seem to matter...

    Hint:  Look in the upper right hand corner
    Re: Fax modem doesn't work under Lion
    Re: will apple's usb modem work with Lion
    external modem
    Re: After installing Lion, my usb broadband modem doesn't work

  • Recomendations for you doesn't work

    quick link on main page of iTunes doesn't work.  I've tried everything and I can't get the link to work.  It worked fine for years and then it slowly stopped sending "Recommendations for you"  would time out and I would remain on main iTunes web page.

    Yes, it still occurs when logged in as a different user. Since my posting earlier this morning, I've noticed that when I type the delete key, the end bracket appears and continues to repeat until I press the space bar. I'm wondering if it's a virus. A colleague at work says that when his macbook is left on for too long, sometimes he will type one command and the macbook will do another. I have had the computer on or in sleep mode nonstop since Sunday morning. Is it possible that it's an over-use issue or possibly some kind of mac virus? The only app I downloaded from the web was a youtube downloader/mp3 converter.
    My main goal would be to reset all system commands to normal - if there's an easy way to do this.
    Thanks for asking.

Maybe you are looking for

  • Jcr:content not getting replaced by _jcr_content

    Hi, we have a problem with some image paths rendered in the markup which points to a specific image rendition, i.e the "jcr:content" node is a part of the path. For some of the image paths, "jcr:content" is not getting replaced by "_jcr_content" caus

  • Find total quantity from vbrk and vbrp

    Hi frinds doing a report to display sales in 3 month 6 month snd past 12 months but didnt get logic to find out here is my code SELECT vbrk~vbeln          vbrk~fkdat          vbrp~fkimg          vbrp~matnr          vbrp~werks          INTO CORRESPOND

  • Mail-enabled Public Folder Gets lots of spam.

    hello all, i don't know if this is to be expect but a public folder that we use is currently (has always) been receiving a large amount of spam emails, i can get some details about the public folder via powershell but i wondered if there was any way

  • There is something wrong with the forum

    There is something wrong with the forum. it is messed up.! I been a little bit observant this past few days, I observed alot of problems.. here are a few, ( there are actually alot more, but I could not describe it. its just very weird. I thought som

  • Thinking to use Oracle Linux

    Hello friends, I am used to work on MS Windows. Without a doubt we get a better performance if we use DB and OS from Oracle. What are basics of Oracle Linux I have to know to be able to install Oracle DB 11g SEO on Oracle Linux ??? Is it possible to