Why DurationElement is not blocking the characters not substituted?

In OSMF 0.95, I used successfully a DurationElement to implement a framework simple poster, using a composition of series built as follows:

var posterImageEl: MediaElement =

mediaFactory.createMediaElement (new URLResource (...));

durationEl var: MediaElement =

new DurationElement (0.0001, posterImageEl);

var videoEl: VideoElement =

VideoElement (mediaFactory.createMediaElement (new URLResource (...)));

videoEl.defaultDuration = 31.67;

var el: SerialElement = new SerialElement();

(durationEl) el.addChild;

el.addChild (videoEl);

With the media player AutoPlay property set to false, after loading, the image of the poster was posted. When the player started playing, the image of the poster disappeared and read video. This is the desired behavior.
This code has stopped working in OSMF 1.0. After loading, nothing is displayed. The image of the poster is not displayed until the player starts to play.
I found the cause of the problem. In OSMF 1.0, the class of DurationElement block exposure of all traits not substituted when the element is neither play nor suspended. In particular, it blocks the exhibition of the characteristic of the display object until the item is played. If my image of the poster does not appear until the player starts to play.
I was able to work around the problem by commenting the line of code in DurationElement which blocks the line of display object. I replaced lines 250 to 259:

private public static const ALL_OTHER_TRAITS:Vector. < String > = new Vector. < String > ();

{

/ / Everything but LOAD, SEARCH, PLAY and TIME.

ALL_OTHER_TRAITS.push (MediaTraitType.AUDIO);

ALL_OTHER_TRAITS.push (MediaTraitType.BUFFER);

ALL_OTHER_TRAITS.push (MediaTraitType.DISPLAY_OBJECT);

ALL_OTHER_TRAITS.push (MediaTraitType.DRM);

ALL_OTHER_TRAITS.push (MediaTraitType.DVR);

ALL_OTHER_TRAITS.push (MediaTraitType.DYNAMIC_STREAM);

}

with:

private static const ALL_OTHER_TRAITS:Vector. < String > = new Vector. < String > ();

{

Everything except LOAD, SEARCH, PLAY and TIME.

ALL_OTHER_TRAITS.push (MediaTraitType.audio);

ALL_OTHER_TRAITS.push (MediaTraitType.buffer);

ALL_OTHER_TRAITS.push (MediaTraitType.DISPLAY_OBJECT);

ALL_OTHER_TRAITS.push (MediaTraitType.DRM);

ALL_OTHER_TRAITS.push (MediaTraitType.DVR);

ALL_OTHER_TRAITS.push (MediaTraitType.DYNAMIC_STREAM);

}

With this change, my code once more to work correctly, and the image of the poster is displayed when loading.
So my question is: in OSMF 1.0, why DurationElement blocking features not to be overridden when the element is neither game nor paused? My solution is likely to lead to some kind of problem, I'm not aware of that?
A related question:
In the ExamplePlayer example, there is a poster frame example that uses a class named PosterFrameElement that extends from ImageElement to add a dash of game, as well as a class named PosterFramePlayTrait that extends from PlayTrait to stop as soon as it is played. Is - that the best way to make posters simple frames? This approach seems to be too complicated compared to my attempt to (perhaps naïve?) simple to use a DurationElement.

The change you are referring was in response to this bug:

https://bugs.Adobe.com/jira/browse/FM-719

Basically, before the fix for FM - 719, the proxiedElement of her DurationElement would expose his features even when the playback head was not the beach of the DurationElement.  This proves to be problematic if her DurationElement was placed in a SerialElement, in what traits would be exposed even when him DurationElement wasn't the current child.  Usually this isn't a problem, but if you have a SerialElement (with a DurationElement) which is in parallel with something longer, then her DurationElement will expose his features, even when its duration is reached, which is unlikely to be an expected result.  So, your solution would solve your problem, but this could introduce problems in the case where the DurationElement is used by other means (no-shows framework).

The example of ExamplePlayer circumvents the whole issue of the times by mapping the poster in the "play" operation frame display  In general, it is a useful model to use to include pieces isolated from the logic that must be performed immediately (BeaconElement uses the same schema).  I agree that it is more complicated than the direct use of a DurationElement, but it is much less fragile because it does not depend on the calendar somehow.

Tags: Adobe Open Source

Similar Questions

  • Why can't I see the characters to enter to clear the spam problem

    you want type me the character that I see, but their there's not some points going in circles

    Hello

    (1) are you using Internet Explorer?

    (2) what operating system do you work?

    If you use Internet Explorer, and then try the steps following article and check if it helps.

    Images will not appear on Web sites in Internet Explorer.

    http://support.Microsoft.com/kb/283807

  • Why AVG Antivirus program blocking the restoration of the system work?

    Dear Sirs

    I have been using the system restore for a long time without any problem. It seems that program Antivirus AVG suddenly began to interfere with the system restore function.

    Why this problem arose?

    I would appreciate your help.

    Thanking you in anticipation

    Hello

    Thanks for choosing Windows and thank you for providing an opportunity to help you.

    According to the description, you are having problems with the program AVG obstructing the restoration of the system.

    1. don't you get error message when AVG anti-virus program hinders the system restore?

    2. the problem persists only with the system restore?

    Contact the Support of AVG for better assistance.

    http://www.Avg.com/us-en/support

    Meet us if you encounter any other Windows problem, and we would be happy to help you.

    Good day!

    Hope this information helps.

  • Why Firefox continues to block all the content I want to see, including tickets, I want to buy out my favorite despite changes sites does not block content?

    the program continues to block the content even with blocking function disabled. I constantly switch between browsers due to the annoying feature. I want it to stop blocking content, I want to disable the blocking, but laboriously must stop at all the sites I visit and spend time while it blocks content, demand if I want to keep the content blocking, annoyingly sinks and I must say to "remember" not to do and does it continuously , while continually annoyingly content blocks! I want him to stop doing that. I'm an adult, I'm 60 years old. I don't need a babysitter on my browser telling me what I should see and what I see, please fix this as soon as possible. Apparently disable the pop-up blocker does nothing to stop this annoying problem. Its design and its content filtering. It's illegal I think since my content I pay and I pay view all content on the world wide web. I want to stop my research of filtering and blocking content! ENOUGH!

    You have an extension, the FindWide toolbar, which many view as an unwanted intruder. You should be able to disable or remove the page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions.

    For completeness, here's my method to track down and clean up bad Add - ons and other ad injectors. I know it seems long, but it's not so bad.

    (1) open the Control Panel, uninstall a program. After the loading of the list, click on the column heading "installed on" to group infections, I mean additions by date. This can help the undisclosed items bundle smoker who snuck out with some software, you have agreed to install. Beware of everything that you don't recognize / remember, since malware often uses sounding names important or innocent to discourage you remove. Out as much garbage as possible here.

    (2) open Firefox page modules using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons
    • in the Windows "Run" dialog box, type or paste
      firefox.exe "about:addons"

    In the left column, click on Plugins. Set essential and unrecognized plugins 'never enable '.

    In the left column, click Extensions. Then, in case of doubt, disable (or delete, if possible) not recognized and unwanted extensions.

    Often, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Any improvement?

    (3) you can search the rest of problems with scanning/cleaning tools listed in our technical support article: Troubleshooting Firefox problems caused by malware. These scanners on request are free and take a long time to run. If they end quickly, especially if they require the payment you have a serious infection. I suggest the specialty forums listed in the article in this case.

    Success?

  • Why not block the senders feature using hotmail work?

    1. once the message is selected and block sender option is selected.  the address of the sender is located in the block message folder and will remove the folder Hoiwever, even if the message will delete folder instead, sneder is blocked;  the sender constantly send spam.

    This feature is not working is there a fis?

    2. second question: I received the message by a friend of emails confidence that a new virus is released which is sent to the user from Aol, hotmail and g-mail titled "now that you got it" by a hacker, that opening his deletions and destroyed all your files, microsoft is aware of this?  This can be confirmed?

    Hello

    You can't stop someone didn't send an email you no more than you can stop someone who knows your address sends you a letter. This is not what 'blocking' is on about. Blocking in this sense is the same as you just throw junk mail in the tray without the opening based on what you see on the envelope.

    In response to your second question, this looks like one of the many hoax/chain emails I've seen. I suggest "Googling" a part of the text correct to confirm my suspicions, place your exact quotes text so that google is looking for an exact match.

    Please mark this as useful or response if applicable.

    Tricky

  • I used some weatherstripping on Hotmail and I believe they receive one more undesirable than before and it does not block the daily junk sent me

    I am daily using my email address and the new scan and block junk e-mail, but every day it is getting worse and even junk is done through WHY? Every day increases the amount of junk I don't know and don't understand why the scanning does not work

    Submit all Hotmail queries on the forum right here:

    Windows Live Solution Center
    http://windowslivehelp.com/

  • Why I can not write in the contact form?

    I use the widget simple contact form. Unfortunately, when the site has been uploaded to the server, I can not write in the form.

    Anyone have an idea why?

    Thanks for the reply,

    Angelika

    Your page uses a 3rd party widget that adds some javascript to try to block the right mouse clicks - which interferes with by clicking on the form in firefox. I suggest you remove this widget or by contacting the promoter to see if they have an updated version that works with the forms of the Muse in firefox.

  • Why oracle does not take into account different types of blocks?

    Hello all;

    I need some information abt 'why oracle does NOT support different block size to create objects?

    I know that we cannot create all objects with different block size.  but do NOT know the reason


    -----------------------------

    Clear explanation, good for me.


    Thanks and greetings

    GTS (ASIA PACIFIC)

    I need some information abt ' why oracle does NOT support different block size to create objects?

    I know that we cannot create all objects with different block size.  but do NOT know the reason

    If I understand you correctly, this is not true: you can create storage with different blocks and create objects in their breast.

    See CREATE TABLESPACE

  • Why Muse does not change the names of certain images or property when exporting to HTML format?

    Why Muse does not change the names of certain images or property when exporting to HTML format? and how can I keep the integrity of the name that the image/file has been saved as?

    General Muse renames a file imported image if the image is modified to achieve the design or the exit, or if the name change was necessary due to a name conflict (two different images which had the same file name when importing).

    The design-time features that will modify an image include cropping, rotation, rounded corners and effects (drop shadow, bevel or glow). It is also true that, in rare cases, Muse will merge an image with other content to optimize page download performance. An example of this would be to place a background image on a block of text that contains the text using system fonts. In this case, rather than a single image for text output and a separate image for the background, Muse will combine the two into a single image.

    If an image is placed or imported by Muse and not tampered with, the image is crossed without modification (including the file name) at export/publish (with him except that Muse will always rename if two different images with the same name).

  • Why Safary does not load the content of pages?

    Why Safary does not load the content of pages? I mean, when I hover over the places where should be the content, he is always showing the "redirect to: [email protected]/" lower left. My Safari is 9.5 and worked fine until Safe Fimder Virus get inside my computer. Mozilla Firefox is a bit slower. If someone could give me an idea on how to deal with it, I would be happy.

    Sorry if my English is not good, I am a Brazilian who is still learning English

    Your English is very good!

    Redirects are usually due to adware or malware.

    Download the run MalwareBytes.

    It of free and takes only a minute or two. Which should remove all adware and malicious software on your Mac.

  • Why Apple does not provide a 10 W charger with the air of the iPad 2 when the barn of the computer and hundreds of people on the web say he needs a 12 W charger because Apple has changed their software and 10 W very slow iPad charges.

    Why Apple does not provide a 10W for I pad air 2 charger when the barn of the computer and hundreds of people on the web say that the 10 W does not work and it takes a 12 W charger.  Burning of the computer told me that Apple has changed their software on the iPad and now requires a 12 W charger.

    So you're claiming Apple is selling iPads with a charger that doesn't work?

    A charger 10W works perfectly well. A 12W charger can be slightly faster to load under certain conditions.

  • Why are there not file prefetch for Thunderbird in the \Windows\Prefetch folder?

    Why are there not file prefetch for Thunderbird in the Windows XP SP3 \Windows\Prefetch folder? I use Thunderbird 38.3.0.

    I deleted all the files in the \Windows\Prefetch folder and noticed that no files have been created it there for new programs began. I restarted the Task Scheduler service and the problem was solved.

  • When I put pictures on my Mac, I chose my Aperture library. Now there is no pictures in Photos or Aperture! They are all in the photo library, but I don't know why they are not in the pictures when I open it?

    When I put pictures on my Mac, I chose my Aperture library. Now there is no pictures in Photos or Aperture! They are all in the photo library, but I don't know why they are not in the pictures when I open it?

    Sorry try again - your post does not calculate

    They are all in the photo library, but I don't know why they are not in pictures

    What version of the operating system and Photos you have? Explain what exactly you're actually seeing and what has changed since it worked

    LN

  • why I can not get the same apps I have on my iPad?

    why I can not get the same apps I have on my iPad?

    Because they are different versions for different operating systems.

  • Why can I not see the details of my question, when you click on it in my profile?

    I've created a new issue earlier this week, and apparently I have a question, based on my profile. When you click on the link 'Question' I see a result search failed. Why can I not see my question (to check if an update)?

    Thanks for that - now I see my original question, which remains unanswered (except someone telling me to use another browser!). You are also able to help with this one please?

    (I can send screenshots to illustrate the problem, if it helps...)

    Soon, K

Maybe you are looking for