OSMF in Flex: (autoPlay = false) does not show 1 Frame

I create a mediaElement and mediaPlayer, mediaContainer exactly like in the osmf_dev_guide.pdf documentation. The only difference is that I addChild to a UIComponent since I am in Flex.

mediaFactory = new DefaultMediaFactory();
mediaElement = mediaFactory.createMediaElement (new URLResource (VIDEO_URL));


mediaPlayer = new MediaPlayer();
mediaPlayer.autoPlay = false;
mediaPlayer.media = mediaElement;

mediaContainer = new MediaContainer();
mediaContainer.addMediaElement (mediaElement);

myMxUiComp.addChild (mediaContainer);

The problem is with the mediaPlayer in bold block. What I expect is a mediaPlayer paused with the first broadcast of the image. What I get is a videoPlayer suspended with a white/white frame (as if the mediaElement has not yet loaded in mediaPlayer).

If I move the line of automatic game down to maybe make sure the mediaElement has loaded into the player, as then, it gets dropped and the video just autoplays and charges as if autoPlay = false is not there.

mediaPlayer = new MediaPlayer();
mediaPlayer.media = mediaElement;

mediaPlayer.autoPlay = false;

as if we did it:

mediaPlayer = new MediaPlayer (mediaElement);

mediaPlayer.autoPlay = false;

I think sandwitching autoPlay = false in the Middle, as shown in the documentation, is the way to go, because I think that he made sure the player is suspended before the insertion of any media (before the mediaElement is assigned). But he would still get the first frame of the video showing, otherwise, it seems confusing to the user.

Thank you

David

The autoPlay property is not retroactive, so if you set autoPlay after setting the MediaElement on the MediaPlayer, then he won't have an effect.

The reason why you get the first image when loading of the fake video with autoPlay is OSMF adopts a cautious approach to the media loading.  If we were to show the first default image, then we trigger the download (for progressive video) or connect to the stream (for release).  In both cases, these actions could trigger "views false' on the side server, we have heard many clients is something to avoid.

In addition, in many cases, the first frame of a video is uninteresting (e.g. no black background image), so it makes more sense to display a poster canned frame.  We experimented with some techniques to achieve this in our example application player example (see examples of "Poster frame" and "RTMP Poster Frame").  Demo is here, source is here.

Finally, I would add that the behavior you're looking for is considered as desirable enough for the video Flex component (which is based on OSMF) that they have added native support.  So, you might also consider looking at their component (Flex 4) for video.

Tags: Adobe Open Source

Similar Questions

  • Since the upgrade to Wiondows 7 over the weekend, MSN does not show my piocture contact or Favorites

    After the upgrade to Windows 7 this weekend past, MSN Premium does not show my Contact picture or favorite unless I select "Run as Administrator" when I start it.  When I start it with "Run as Administrator", my picture of contacts in Windows Live Messenger, my favorites appear and the photo of the Contact displayed in the Panel to the screen.  Unfortunately, MSN work very slowly in administrator mode, mail is hot flushes extremely slow and Live Messenger every few seconds.

    This looks like to me a permissions problem.  Windows Live Mail has crashed with false file corruption errors until I used event ID Viewer files I needed to have the permissions.  Finally got my Windows Live Issuies known resolved.  This problem is the only thing preventing the upgrade to Windows 7 to be a success.  No one knows what files I need to add my username to access it?

    Hello

    If the question is limited with MSN, I suggest contac MSN support for assistance.

    https://support.MSN.com/contactus.aspx?WA=wsignin1.0&scrx=1

    If the problem persists with Hotmail, I suggest you write the topic in the forum link mentioned below and check.

    http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail-wlsettings?tab=all

    Hope this information helps.

  • DataGrid: can I recover the data, BUT it does not show the datagrid control

    Hello

    Hi - I've traced data through php mysql in actionscript but it does not show the datagrid control. Here is my code.

    Import fl.controls.DataGrid;

    Import fl.controls.dataGridClasses.DataGridColumn;

    Import fl.data.DataProvider;

    Import fl.controls.ScrollPolicy;

    Import fl.managers.StyleManager; necessary to format the text in cells

    import flash.display.MovieClip;

    import flash.net.URLRequest;

    import flash.events.Event;

    import flash.events.MouseEvent;

    import flash.net.URLLoader;

    to import flash.net.URLVariables;

    import flash.net.URLRequestMethod;

    import flash.net.URLLoaderDataFormat;

    Create a new instance of the DataGrid component.

    var aDg:DataGrid = new DataGrid();

    var myDp:Array = new Array();

    var myData:URLRequest = new URLRequest ("http://www.cambridgekids.es/kglad/php/getUsers.php");

    myData.method = URLRequestMethod.POST;

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = pouvez;

    loader.addEventListener (Event.COMPLETE, dataOnLoad);

    Loader.Load (mydata);

    function dataOnLoad(evt:Event) {}

    for (var i: uint = 0; i < evt.target.data.cant; i ++) {}

    myDp.push ({number: evt.target.data ["firstname" + i], Apellido:evt.target.data["lastname"+i]});})

    / / trace (evt.target.data ["firstname" + i]);

    }

    myDp.dataProvider = new DataProvider (myDp);

    }

    aDg.dataProvider = new DataProvider (myDp);

    aDg.columns = ['number', 'Apellido'];

    aDg.setSize (800,300);

    aDg.move (150,200);

    aDg.rowHeight = 40; / / allows 2 lines of text in the default text size.

    aDg.columns [0] .width = 80;

    aDg.columns [1] .width = 30;

    aDg.resizableColumns = true;

    aDg.verticalScrollPolicy = ScrollPolicy.AUTO;

    addChild (aDg);

    DOH! I thought I was in the flex forum so ignore my previous answer.

    You must set the dataProvider on the dg after completing the dataprovider with data so spend aDg.dataProvider = new DataProvider (myDp); at the end of the dataOnLoad method

  • Windows 10. installed iTunes version 12.4.0.119. I have several iTunes libraries. On most of them display-&gt; ' display as ' does not show the grid option. A library of fact.  It's all music, with no video media. By default seems to be a list that is unc

    Windows 10. installed iTunes version 12.4.0.119. I have several iTunes libraries. On most of them display-> ' display as ' does not show the grid option. A library of fact.  It's all music, with no video media. By default seems to be a list that is unchangeable.

    Select the sidebar if hidden. View options > view as may depend on which of the options for the song, artist, album, etc. are selected in the sidebar.

    TT2

  • iTunes movie does not show on the ipad after download

    When I rent a movie via itunes on my ipad air 2 it runs it through the treatment of download, but the film does not show in one of my shopping list

    To download in the video the iPad app play you (which is where you looked too?) -It will appear in the purchased for redownloading, rentals are a unique download only

  • Why apple card app does not show the routes and directions between two places in India in an iphone 6 s more?

    map does not show the routes and directions

    This feature is not yet supported in India.

    http://www.Apple.com/in/iOS/feature-availability/#maps-directions

    In addition, your phone may be overheating for a number of reasons. The most common of which is low service area.

    Your attributes from battery to the majority of the production of heat, then adjust settings to put less load on the farm in general will help some.

    http://www.Apple.com/batteries/maximizing-performance/#iOS

  • Checking update Java plug-in does not show latest version after update same

    Checking update Java plug-in does not show latest version after update same

    You exit and then restart your browser after Java update in order for the right version of Java to display the Plugin Check page. I felt it necessary to do so.

    See also:

    Other - you should check your Plugins and update as needed.

  • How to lock my browser so it does not show my passwords.

    I'm going to work on my computer and take it to a local store. I would like to please how to close my browser so it does not show my passwords for my accounts? (there is no real safe biggies) I'd rather just they didn't have the ability to snoop. Also, if my operating system is upgraded it deletes my browser history / passwords saved in Firefox? (I'm not concerned about the other browsers) Thanks in advance

    You can protect firefox password store by setting a master password.

    If your data are always there after an upgrade of the OS depends on how they do it - to be sure, you can save your profile on a usb key or elsewhere before you replace your pc - see back up and restore the information contained in the profiles of Firefox

  • Boot Camp Windows does not show Macintosh HD in file Explorer what should I do?

    Hello

    I installed windows on boot camp 10 but windows file Explorer does not show my files on mac and I can't access them what should I do?

    You need to install the boot camp software in windows to get this working

  • Sessionrestore occasionally does not show my tabs as they were when I closed Firefox, but as they were some time before I closed it.

    Sometimes Sessionrestore does not show my tabs as they were when I closed Firefox, but as they were some seemingly random (but persistent if retry) point between the beginning and the end of my last session. Sometimes, they are exactly as they were when I started my last session. I am currently using Firefox 5, but the problem was already present when I always used 4. It is perhaps also relevant that I tend to have a lot of windows and tabs open, sometimes to the point of crashing Firefox.

    It is possible that one of the extensions is the cause, but that can be difficult to diagnose if you can reproduce or force it to happen.

  • TRYING to EXPORT BOOKMARKS - BOOKMARKS-CLICK &amp; IT does not SHOW "MANAGE the BOOKMARKS' HELP!

    TRYING TO EXPORT MY FAVORITES (COMPUTER WILL CRASH SOON). I FOLLOWED THE INSTRUCTIONS TO DO THIS. I CLICKED ON the FAVOURITES and IT does not SHOW 'MANAGE BOOKMARKS' how DO I EXPORT MY FAVORITES IF I can't CLICK ON "MANAGE BOOKMARKS"?

    Thank you

    Menu, select "Show all bookmarks", that will open the bookmarks library in bookmarks. In the library, you can use the "import and backup" menu to export bookmarks.

  • I downloaded Open Office, but it does not show in my Applications. Only an icon shows on my desktop

    I downloaded Open Office, but it does not show in my Applications. Only an icon shows on my desktop and when I stop I have to re - download.

    Where did you put it after installing it, it should have been in the Applications folder, was it?

  • videos app does not show me movies and TV shows, that I recently bought.

    Hi all, I have a problem with my iPhone 6 s, the problem is that the videos app does not show me movies and TV shows, I bought a few hours ago, and I realize that my iPhone 4S has not this problem. Both have installed the latest versions of ios.

    Don't show them where? In the video application itself? Tab in iTunes purchased? If they are not downloaded, go to settings > videos > show iTunes purchases > on.

  • Finder does not show folders

    Hello

    I have a macbook Air 13 "bought in 2011, it has OS X 10.9 Mavericks installed and since yesterday the Finder does not work. When I open it it does not show a folder or a document, and it shows strange reasons (reminds me when my old Windows crashed).

    Here you will find some screenshots.

    Important to note is that if I use a projector I can find the files, then open them. Also when I upload an image on the internet and I have to select from the computer via the Finder (regarding the screenshots attached), it works well. In addition, as you can see from the screenshots, on top of the viewfinder, I can see the files and I can open them somehow. If I change the view of the researcher, song to a list, so I can't see anything and can not open files.

    I tried to restart the computer, turn it off and turn it on all by pressing the SHIFT key, but it does not work. Interestingly, when I force to quit the Finder application and I re-launch, for the first 10 seconds, it works, then it stops working.

    Do you have an idea what could be the problem?

    Alex

    Unfortunately I have a hardware problem with RAM or graphics chip.

    If your MacBook Air has been purchased after July 20, 2011, he probably has a material test integrated.  You can find starting with'd ' key.

    If it isn't you will need the installer original discs/flash drive that comes with it.    If missing, call AppleCare.

    You may also be able to get a disc to test material created with this link:

    https://github.com/upekkha/AppleHardwareTest

    If Apple Hardware Test reveals no problems, it is more likely that the RAM is an issue than any other thing: *

    http://www.macmaps.com/BadRAM.html

    * Links to my pages give me an allowance.

  • Firefox 4 beta1 does not show the new user interface

    Firefox 4 beta1 does not show the new UI (not Firefox Button on the left). It is exactly the same as FF 3.6.8 under the tabs on the top function. Also, if I disable the menu bar, UI GET screwed up

    This has happened

    Each time Firefox opened

    Nevermind, I fixed it.
    It seems that, for some reason, the default theme has been disabled (?) for the installation of 4 FF, and everything looked weird and wise as I mentioned in the original post.
    On a side note, next to the default theme, once I activated, it reads "not compatible with FF4.

Maybe you are looking for

  • Satellite A200-24 c (PSAE6) - display crashes when the images are zoomed

    Dear Sirs, I can't believe that there is no solution for the product that you produce. As my Toshiba I bought 14 months ago and try to fix it. I have a problem with my map displays 'ATI Mobility Radeon HD 2600' when I see photos with Windows Photo Ga

  • Older update can be removed from the computer

    original title: updates on my system< sony="" vaio=""> I have an old laptop that has had many updates over the years somethings say this cannot be removed of course there are others who show that they can be removed, butthese removable without doing

  • Black and white photos, impression in the purple form

    My wife has been copying some black & white family photos historical.  Six or more printed correctly, then a photo past black & white to one your purpleish to phase full of 90%, only the lower part had changed colors.  We loaded another cartridge pri

  • no service in administrative tools Printer Spooler

    I find no printer spooler service to enable in administrative tools

  • Re-install Windows 7 Ultimate

    I use Windows 7 ultimate.i have product key. now I want to farmat my computer.i want to know can I reinstall window 7 ultimate with the same product key? Original title: I use Windows 7 ultimate.i have product key. now I want to farmat my computer.i