[svn:osmf:] 15519: Extend MediaPlayer unit tests.

Revision: 15519
Revision: 15519
Author:   [email protected]
Date:     2010-04-16 14:16:37 -0700 (Fri, 16 Apr 2010)
Log Message:
Extend MediaPlayer unit tests.
Modified Paths:
    osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.as
    osmf/trunk/framework/OSMFTest/org/osmf/media/TestMediaPlayer.as

Similar Messages

  • [svn:osmf:] 10987: Refactor MediaPlayer unit tests to make them injectable by MediaElement.

    Revision: 10987
    Author:   [email protected]
    Date:     2009-10-13 20:54:31 -0700 (Tue, 13 Oct 2009)
    Log Message:
    Refactor MediaPlayer unit tests to make them injectable by MediaElement.  Add additional unit tests for injecting various MediaElements into a MediaPlayer.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/audio/SoundAdapter.as
        osmf/trunk/framework/MediaFramework/org/osmf/media/MediaPlayer.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/dynamicstreaming/NetStreamSwitchableTrai t.as
        osmf/trunk/framework/MediaFramework/org/osmf/proxies/TemporalProxyElement.as
        osmf/trunk/framework/MediaFramework/org/osmf/traits/SwitchableTrait.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/audio/TestAudioElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayer.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/proxies/TestTemporalProxyElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/utils/NetFactory.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/utils/TestConstants.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockDynamicNetStream.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockNetStream.as
    Added Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithAudioElemen t.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithAudioElemen tWithSoundLoader.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithBeaconEleme nt.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithDynamicStre amingVideoElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithProxyElemen t.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithTemporalPro xyElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithVideoElemen t.as

    Revision: 10987
    Author:   [email protected]
    Date:     2009-10-13 20:54:31 -0700 (Tue, 13 Oct 2009)
    Log Message:
    Refactor MediaPlayer unit tests to make them injectable by MediaElement.  Add additional unit tests for injecting various MediaElements into a MediaPlayer.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/audio/SoundAdapter.as
        osmf/trunk/framework/MediaFramework/org/osmf/media/MediaPlayer.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/dynamicstreaming/NetStreamSwitchableTrai t.as
        osmf/trunk/framework/MediaFramework/org/osmf/proxies/TemporalProxyElement.as
        osmf/trunk/framework/MediaFramework/org/osmf/traits/SwitchableTrait.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/audio/TestAudioElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayer.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/proxies/TestTemporalProxyElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/utils/NetFactory.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/utils/TestConstants.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockDynamicNetStream.as
        osmf/trunk/libs/adobe/NetMocker/org/osmf/netmocker/MockNetStream.as
    Added Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithAudioElemen t.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithAudioElemen tWithSoundLoader.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithBeaconEleme nt.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithDynamicStre amingVideoElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithProxyElemen t.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithTemporalPro xyElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayerWithVideoElemen t.as

  • [svn:osmf:] 10703: Extending regions unit tests some more.

    Revision: 10703
    Author:   [email protected]
    Date:     2009-09-29 16:35:07 -0700 (Tue, 29 Sep 2009)
    Log Message:
    Extending regions unit tests some more.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/gateways/TestRegionSprite .as

  • [svn:osmf:] 12421: Extending CompositeMetadata unit tests.

    Revision: 12421
    Revision: 12421
    Author:   [email protected]
    Date:     2009-12-03 01:28:37 -0800 (Thu, 03 Dec 2009)
    Log Message:
    Extending CompositeMetadata unit tests. Adding null checks to CompositeMetadata.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/metadata/CompositeMetadata.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestCompositeMetadata.as

  • [svn:osmf:] 11341: Added some unit tests to get the metadata package above 80%

    Revision: 11341
    Author:   [email protected]
    Date:     2009-10-30 16:24:35 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Added some unit tests to get the metadata package above 80%
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestTemporalFacet.as

    The nature of the Media class is that it accesses it asynchronously. This means that when you create an instance of it, and then immediately query it, the data you want may not be available yet. This is all in the Javadoc, see the doc for Media:
    The media information is obtained asynchronously and so not necessarily available immediately after instantiation of the class. All information should however be available if the instance has been associated with a MediaPlayer and that player has transitioned to MediaPlayer.Status.READY statusSo you could associate the Media with a MediaPlayer, and then wait until it goes to the Status READY, and then read the length of the Media.
    As for your 2nd question, getMetadata() returns a Map. You can just loop through it:
      for(Map.Entry<String, Object> entry : media.getMetadata()) {
        // etc
      }However, the same restrictions apply as with Media -- you will probably need to wait before the information is available -- that's why the Listener approach works, because it will notify you as soon as the information is added to the map.

  • [svn:osmf:] 10137: Dynamic streaming unit tests now pass.

    Revision: 10137
    Author:   [email protected]
    Date:     2009-09-10 16:01:37 -0700 (Thu, 10 Sep 2009)
    Log Message:
    Dynamic streaming unit tests now pass.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/net/dynamicstreaming/NetStreamSwi tchableTrait.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/traits/SwitchableTrait.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/traits/TestISwitchable.as

    Hello!
    1) Given the string plugin is loaded from (file:///C:/alex/PlayerCDN/lib/PlugIN_junio.swf) application loads it from file system that "involves complex security" (our app can't load local files - we don't need it but nevertheless).
    You may want to try directing your Flex builder run configuration to use http://localhost/yourappwrapper.html as a "URL or path to launch" parameter.
    Try to set full path to plugin also (including host).
    2) As I can see, you don't have
    Security.allowDomain('*');
    in your plugin constructor.
    Although it is being loaded from the same host - do try to insert it
    Here is our plugins main file - everything works fine:
    package {
    import flash.display.Sprite;
    import flash.system.Security;
    import org.osmf.media.PluginInfo;
    import plugin.ControlBarPlugin;
    public class CBPlugin extends Sprite
      private var _pluginInfo:PluginInfo;
      public function CBPlugin()
       Security.allowDomain('*');
       _pluginInfo = (new ControlBarPlugin).pluginInfo;
      public function get pluginInfo():PluginInfo{
       return _pluginInfo;

  • [svn:osmf:] 14678: Removal events unit tests.

    Revision: 14678
    Revision: 14678
    Author:   [email protected]
    Date:     2010-03-10 11:34:37 -0800 (Wed, 10 Mar 2010)
    Log Message:
    Removal events unit tests.  Fixed issue w/ autoSwitch.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.as
        osmf/trunk/framework/OSMFTest/org/osmf/media/TestMediaPlayer.as

  • [svn:osmf:] 14780: FMTA work + unit tests.

    Revision: 14780
    Revision: 14780
    Author:   [email protected]
    Date:     2010-03-16 09:55:23 -0700 (Tue, 16 Mar 2010)
    Log Message:
    FMTA work + unit tests.  Added NetNegotiator unit test support.  Fixed bug in constructor of Streaming URL resource. 
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetNegotiator.as
        osmf/trunk/framework/OSMF/org/osmf/net/StreamingURLResource.as
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/TestNetNegotiator.as

  • [svn:osmf:] 15299: Fixing build: unit tests expect the seek to complete over a timer.

    Revision: 15299
    Revision: 15299
    Author:   [email protected]
    Date:     2010-04-09 03:04:45 -0700 (Fri, 09 Apr 2010)
    Log Message:
    Fixing build: unit tests expect the seek to complete over a timer. Adding this behavior on signaling the seek completion event from the newly added path.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamSeekTrait.as

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • [svn:osmf:] 13003: Update some unit tests to reflect that LayoutContextSprite now returns 0 ( not NaN) for uninitialized values to be consistent with ViewTrait.

    Revision: 13003
    Revision: 13003
    Author:   [email protected]
    Date:     2009-12-16 13:12:08 -0800 (Wed, 16 Dec 2009)
    Log Message:
    Update some unit tests to reflect that LayoutContextSprite now returns 0 (not NaN) for uninitialized values to be consistent with ViewTrait.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/layout/TestLayoutContextSprite.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/proxies/TestListenerProxyElementAsSu bclass.as

    Revision: 13003
    Revision: 13003
    Author:   [email protected]
    Date:     2009-12-16 13:12:08 -0800 (Wed, 16 Dec 2009)
    Log Message:
    Update some unit tests to reflect that LayoutContextSprite now returns 0 (not NaN) for uninitialized values to be consistent with ViewTrait.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/layout/TestLayoutContextSprite.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/proxies/TestListenerProxyElementAsSu bclass.as

  • [svn:osmf:] 15010: Add f4f unit tests, more to come.

    Revision: 15010
    Revision: 15010
    Author:   [email protected]
    Date:     2010-03-24 17:05:36 -0700 (Wed, 24 Mar 2010)
    Log Message:
    Add f4f unit tests, more to come.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/AdobeSegmentRunTable.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/HTTPStreamingTestsHelper.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/f4f/TestAdobeBootstrapBox.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/f4f/TestAdobeSegmentRunTable.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/f4f/TestAdobeSegmentRunTableInte gration.as

    Abuse reported.

  • [svn:osmf:] 10581: Integration VAST unit tests into mediaframework unit tests

    Revision: 10581
    Author:   [email protected]
    Date:     2009-09-24 17:09:59 -0700 (Thu, 24 Sep 2009)
    Log Message:
    Integration VAST unit tests into mediaframework unit tests
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/.actionScriptProperties
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
    Added Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/VASTTestConstants.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/loader/
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/loader/TestVASTLoade r.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/media/
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/media/TestDefaultVAS TMediaFileResolver.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/media/TestVASTImpres sionProxyElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/media/TestVASTMediaG enerator.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/media/TestVASTTracki ngProxyElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/parser/
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/vast/parser/TestVASTParse r.as

  • [svn:osmf:] 14261: Updated DRM unit tests to work with code review feedback .

    Revision: 14261
    Revision: 14261
    Author:   [email protected]
    Date:     2010-02-18 14:15:23 -0800 (Thu, 18 Feb 2010)
    Log Message:
    Updated DRM unit tests to work with code review feedback.
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/elements/TestParallelElementWithDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/TestSerialElementWithDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/traits/TestDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/DynamicDRMTrait.as

    Hello Alex,
    I don't have an answer for you.
    But, can you try to use http://drmtest2.adobe.com:8080/Content/anonymous.f4v with locally hosted OSMF player? This content doens't require user/pass info.
    I'm wondering that Google TV's flash player doesn't support prompt dialog.
    http://drmtest2.adobe.com/AccessPlayer/player.html requires flash player 11. That's why it won't be loaded with flash player 10.x.
    Thanks,
    -- Hiroshi

  • [svn:osmf:] 13950: re added unit tests.

    Revision: 13950
    Revision: 13950
    Author:   [email protected]
    Date:     2010-02-02 17:17:09 -0800 (Tue, 02 Feb 2010)
    Log Message:
    re added unit tests.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/traits/LoaderBase.as
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as

  • [svn:osmf:] 12621: Enabled all unit tests.

    Revision: 12621
    Revision: 12621
    Author:   [email protected]
    Date:     2009-12-07 12:57:15 -0800 (Mon, 07 Dec 2009)
    Log Message:
    Enabled all unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as

Maybe you are looking for

  • IMac G5 won't startup

    My iMac G5 (no isight) got a "please restart" error, after which it refused to reboot, going grey, the blue, then stopping. I cleared the PRAM - no luck. I can get the thing started in safe mode (holding down shift key), but not in non-safe made. I w

  • Regarding list alv display

    Hi All, I am catching double click event in user command for alv list display,where we get one structure filled on runtime called slis_selfield upon double clicking on alv rows. in this structure i am not getting the field 'sel_tab_field' filled. and

  • OSMF 1.5 - VerifyError: Error #1014: Class org.osmf.media::MediaFactory could not be found.

    Hi I'm compiled osmf 1.5 player - OSMFPlayer project for http streaming, using chromeLlibrary and OSMF.swc. I generated OSMFPlayer.swf without any errors, but when I'm trying to use this file I get a lot of errors with the player VerifyError: Error #

  • Satellite A105-S2081

    Hi; How can I fix or troubleshooter local internet connection. I have an IP address assigned but still I can't connect to the internet. I have even taken the laptop to hub and I get the same thing. CONNECTION STATUS YOU MIGHT NOT BE ABLE TO ACCESS TH

  • Illustrator CS3 - Export all layers to Individual jpgs

    Hi everyone Is there a way to Export all layers (within Illustrator) to Individual jpgs/png/emf? e.g. Say I have 50 layers and I want each layer to be a different .jpg file, I don't want to have to export each layer one at a time. I know you can do t