Osmf 1.5 switch bitrate

Hello, i try OSMF 1.5 player in the flex project all working fine. I have live video stream(H.264) in two diffren bitrates 100 and 200 kbps and try dynamicstream switching. Then i set the manual mode i can switch from bitrate to bitrate without any difficulties then i choose auto mode, bitrate is set to the lowest. Is it normal ? I test this on the last wooza server, flme and flex 4.1 sdk, flash player 10.1

Hi,
Try setting bufferTime on MediaPlayer to 8. If your buffer empties OSMF will switch to the lowest quality rendition.
Thanks,
- charles

Similar Messages

  • 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));

  • [svn:fx-4.0.0] 13391: Updating OSMF for the ASDoc updates and taking a new SWC and RSL.

    Revision: 13391
    Revision: 13391
    Author:   [email protected]
    Date:     2010-01-08 16:12:48 -0800 (Fri, 08 Jan 2010)
    Log Message:
    Updating OSMF for the ASDoc updates and taking a new SWC and RSL.
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: Deepa
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/branches/4.0.0/frameworks/air-config.xml
        flex/sdk/branches/4.0.0/frameworks/flex-config.xml
        flex/sdk/branches/4.0.0/frameworks/libs/osmf.swc
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/AudioElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/AudioSeekableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/SoundAdapter.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/SoundDownloadableTrai t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/SoundLoadedContext.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/audio/SoundLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeAudibl eTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeBuffer ableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeMetada ta.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositePausab leTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositePlayab leTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeSeekab leTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeSpatia lTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeTempor alTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/CompositeViewab leTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/ParallelSeekabl eTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/ParallelSpatial Trait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/ParallelSwitcha bleTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/ParallelViewabl eTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/SerialSeekableT rait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/SerialSpatialTr ait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/SerialSwitchabl eTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/composition/SerialViewableT rait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/content/ContentElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/content/ContentLoadedContex t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/content/ContentLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/MediaElementSprite. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/MediaPlayerSprite.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/ScalableSprite.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/ScaleMode.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/display/ScaleModeUtils.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/drm/DRMServices.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/AudioEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/BufferEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/ContentProtectionEve nt.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/DimensionEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/FacetValueChangeEven t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/FacetValueEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/GatewayChangeEvent.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/LoadEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MediaError.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MediaErrorEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MediaPlayerCapabilit yChangeEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MediaPlayerStateChan geEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/MetadataEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/NetConnectionFactory Event.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/NetNegotiatorEvent.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/PausedChangeEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/PlayingChangeEvent.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/PluginLoadEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/SeekEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/SwitchEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/TimeEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/events/ViewEvent.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/gateways/HTMLGateway.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/gateways/RegionGateway.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/image/ImageElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/image/ImageLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/AbsoluteLayoutFacet. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/AnchorLayoutFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/DefaultLayoutRendere r.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/ILayoutContext.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/ILayoutRenderer.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/ILayoutTarget.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutAttributesFace t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutContextSprite. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutRendererBase.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutRendererFacet. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/LayoutUtils.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/MediaElementLayoutTa rget.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/PaddingLayoutFacet.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/RegistrationPoint.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/layout/RelativeLayoutFacet. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/ILogger.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/ILoggerFactory.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/Log.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/TraceLogger.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/logging/TraceLoggerFactory. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/IContainerGateway.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/MediaElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/MediaPlayer.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/MediaPlayerState.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/URLResource.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/IFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/IIdentifier.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/KeyValueFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/MediaType.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/Metadata.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/MetadataNamespaces .as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/MetadataUtils.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/MetadataWatcher.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/ObjectFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/ObjectIdentifier.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/StringIdentifier.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/TemporalFacet.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/TemporalFacetEvent .as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/metadata/TemporalIdentifier .as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetClient.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetConnectionCodes.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetConnectionFactory.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetLoadedContext.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetNegotiator.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamAudibleTrait.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamBufferableTrai t.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamCodes.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamContentProtect ableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamDownloadableTr ait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamPausableTrait. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamPlayableTrait. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamSeekableTrait. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/NetStreamTemporalTrait. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/StreamType.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Droppe dFramesRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cNetStream.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cStreamingItem.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cStreamingNetLoadedContext.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cStreamingNetLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Dynami cStreamingResource.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/INetSt reamMetrics.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/ISwitc hingRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Insuff icientBandwidthRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Insuff icientBufferRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Metric sProvider.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/NetStr eamSwitchableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Suffic ientBandwidthRule.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Switch ingDetail.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Switch ingDetailCodes.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/net/dynamicstreaming/Switch ingRuleBase.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/DynamicPluginLoader. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/IPluginInfo.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/PluginClassResource. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/PluginElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/PluginLoadedContext. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/PluginLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/plugin/StaticPluginLoader.a s
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/swf/SWFElement.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/swf/SWFLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/tracking/Beacon.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/AudibleTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/BufferableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ContentProtectableTr ait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/DownloadableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IAudible.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IBufferable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IContentProtectable. as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IDisposable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IDownloadable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IPausable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IPlayable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ISeekable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ISpatial.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ISwitchable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ITemporal.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/IViewable.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/LoadState.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/LoadableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/MediaTraitType.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/PausableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/PlayableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/SeekableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/SpatialTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/SwitchableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/TemporalTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/traits/ViewableTrait.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/BinarySearch.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/FMSHost.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/FMSURL.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/HTTPLoader.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/utils/URL.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/video/CuePoint.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/video/CuePointType.as
        flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/video/VideoElement.as
    Added Paths:
        flex/sdk/branches/4.0.0/frameworks/rsls/osmf_flex.4.0.0.13386.swf
    Removed Paths:
        flex/sdk/branches/4.0.0/frameworks/rsls/osmf_flex.4.0.0.13104.swf

    I recently updated my eMac from Panther (10.3.x) to Tiger and let it go ahead and update by downloading the 10.4.10 patch from Apple. It has been some weeks now and so far no issues to report. So it seems ok. And my eMac is a version before yours.
    Patrick

  • Dynamic Streaming - problems with MP4 (h.264)

    Hey Flash Guru's
    Im wondering if anyone have had any similar problems with the MP4 (H.264) format when implementing Dynamic Streaming using a FMS server?
    Basicly we developed a player that detects the users bandwidth and plays the appropiate VOD stream (500, 1000 or 1500 kb/sec). Its tested with NetLimiter and works perfectly switching bitrates/files during the movie with both MP4 (h.264) and FLV (On2Vp6).
    The problem occurs when you seek (jumps in the progressbar). When playing the MP4 files the player often uses 2-10 seconds to start the stream again. But when using FLV files the seeking is seamless and starts the stream within 2 seconds everytime.
    So my question is if the FMS servers, Flash or the Dynamic Streaming got an issue with MP4 files?
    Any help would be appreciated.
    Best regards
    Bo
    Denmark

    H264 content does take quite a few images to get rolling before playback starts.  That's normal but it shouldn't take 10 seconds - it sounds like your buffer length might be overly long and it's taking a while to fill up after the seek.  Consider keeping a short buffer like as small as 0.1 seconds for playback starts.  Once you get your Play.Start or your Buffer.Full message then you can adjust the buffer length on the fly to something longer to handle the bumps.
    It's also possible that you're getting the high bandwidth stream again when you seek by mistake.  Check your server logs to see that you're getting the play that you're expecting there.
    Asa
    FMS

  • [svn:fx-trunk] 12025: Switching out the old video component for the new video component that uses OSMF .

    Revision: 12025
    Revision: 12025
    Author:   [email protected]
    Date:     2009-11-19 17:48:04 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Switching out the old video component for the new video component that uses OSMF.  Also fixing RSL issue with OSMF because a change in flex-config.xml accidentally got overwritten.  Also fixing a bug caught during the last code review where you would set the volume on the VideoPlayer, but the volumeBar wouldn't be made aware of that change.
    Switching out the video component results in many API changes.  The changes are highlighted below:
    Class name changes:
    - spark.primitives.VideoElement is being renamed to spark.components.VideoDisplay
    - spark.components.mediaClasses.StreamingVideoSource is renamed to park.components.mediaClasses.DynamicStreamingVideoSource
    - spark.components.mediaClasses.StreamItem is renamed to park.components.mediaClasses.DynamicStreamingVideoItem
    VideoDisplay/VideoPlayer event changes:
    The new video component's events are:
    - bytesLoadedChange : org.osmf.events.LoadEvent
    - currentTimeChange : org.osmf.events.TimeEvent
    - durationChange : org.osmf.events.TimeEvent
    - mediaPlayerStateChange : org.osmf.events.MediaPlayerStateChangeEvent
    The old video component's events were:
    - close : spark.events.VideoEvent (removed)
    - complete : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    - metaDataReceived : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    - playheadUpdate : spark.events.VideoEvent (replaced with currentTimeChange)
    - progress : flash.events.ProgressEvent (replaced with bytesLoadedChange)
    - ready : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    VideoDisplay/VideoPlayer property changes:
    Renames:
    - maintainAspectRatio:Boolean has been renamed to scaleMode:String and rather than true/false, it now access 4 values: none, zoom, letterbox, and stretch.  See the enum class org.osmf.display.ScaleMode.
    - playheadTime:Number has been renamed to currentTime:Number
    - playWhenHidden has been renamed to pauseWhenHidden, and it's "tense" has been reversed.  So playWhenHidden = true correlates to pauseWhenHidden = false.  Also, before we would only pause when the video component was explcitly set to visible=false, but now we detect if the video components or any of it's ancestors have been hidden.
    - totalTime:Number has been renamed to duration:Number
    New properties:
    - bytesLoaded:Number This is a new property not available on the old video component
    - bytesTotal:Number This is a new property not available on the old video component
    - loop: Boolean this was a property added a while ago on the old video component but not in the original video player spec
    - mediaPlayerState: this is a new property that details the state of the video component.  See org.osmf.media.MediaPlayerState for all the possible values.
    - seekToFirstFrame:Boolean (pending PARB approval) - This is a new property available on VideoDisplay/VideoPlayer.  When autoPlay = false, if seekToFirstFrame is set to true, then we will connect to the server to start downloading the video, figure out the size of the video and resize appropriately, and show the first frame of the video.  If seekToFirstFrame is false, then no connection to the server is made, there's no implicit size for this video, and the first frame will not be show automatically.  By default the value of this property is true.  In the old video component, when autoPlay = false, we always has the same behavior as seekToFirstFrame = true.  Now it is controllable through this property.  Eventually, (not for Flex 4.0), we will most-likely have support for a thumbnail source or a splash screen so the video's preview will show up without making an unneeded connection to the server.  The property name may change depending on PARB.
    Other changes:
    - autoRewind: The default of autoRewind is now true instead of false
    - enabled: before we paused the video when the video component was explicitly set to enabled = false.  Now we pause the video when the video component or any of it's ancestors have been disabled.
    VideoPlayer-only changes:
    - videoObject:flash.media.Video property is now a new property on VideoPlayer.  It was previously only on VideoDisplay.
    - The skin states for the old VideoPlayer were: connectionError, disabled, disconnected, loading, playing, stopped, connectionErrorAndFullScreen, disabledAndFullScreen, disconnectedAndFullScreen, loadingAndFullScreen, playingAndFullScreen, stoppedAndFullScreen.  The new skin states are: uninitialized, loading, ready, playing, paused, buffering, playbackError, disabled, uninitializedAndFullScreen, loadingAndFullScreen, readyAndFullScreen, playingAndFullScreen, pausedAndFullScreen, bufferingAndFullScreen, playbackErrorAndFullScreen, disabledAndFullScreen
    DynamicStreamingVideoItem property changes:
    - bitRate:Number renamed to bitrate:Number
    DynamicStreamingVideoSource property changes:
    - initialIndex has been added to DynamicSteramingVideoSource
    - live:Boolean has changed to streamType:String which accepts values: live, recorded, any.  See the enum class org.osmf.net.StreamType for more info.
    - serverURI:String renamed to host:Object
    - streamItems:Array has changed types to streamItems:Vector.
    ScrubBar property changes (THESE CHANGES ARE NOT DONE YET, BUT SHOULD BE DONE SOON)
    - bufferedStart will be removed
    - bufferedEnd will be renamed to loadedRangeEnd.  This property name still may change depending on PARB.
    - bufferedArea skin part needs to be renamed.  Probably will be renamed to loadedArea.  PARB still deciding.
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: Kevin
    Tests run: checkintests
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/frameworks/flex-config.xml
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as
        flex/sdk/trunk/frameworks/projects/wireframe/build.xml
        flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mx ml
        flex/sdk/trunk/frameworks/spark-manifest.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml
    Removed Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer2.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamItem.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamingVideo Source.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.png
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin2.mxml

    I've got that same problem: iPod Touch 2nd Gen, Apple Component Cables, and an HD TV.
    The funny thing is, the cable works fine with an iPod Classic (160 GB) but not for the iPod Touch. Can anyone explain why that is?

  • Dynamic Bitrate Switching on Live Stream

    I have FMIS 3.5.  I've installed it with pretty much all the default values.  I haven't changed any of the settings in either the  LIVE or the VOD applications.
    Dynamic Bitrate Switching is working well for VOD, but not working at all for LIVE streams. Doing a regular bandwidth detection on both the LIVE and the VOD applications give similar, high bandwidth results.  However, the LIVE application  NetStreamInfo.maxBytesPerSecond is showing a very low bandwidth capability of around maxBytesPerSecond = 19016, where as for the VOD its achieving around 637110. I can play a single LIVE stream of a high quality smoothly without any error.
    I don't know if this is relevent but I'm getting some error messages occassionally in the log of the live application saying : Dropping application (live/_definst_) message. Clients not allowed to broadcast message.  These messages aren't consistent, and don't coincide with trying to use bitrate switching.
    I have tried downloading the Adobe sample StreamSwitching.fla and it won't play the LIVE streams at all.  Using the opensource Longtail Video player it just always defaults to the lowest stream.  Here is an example: http://www.ltscotland.org.uk/testbed/live/livestream2.asp
    Can anyone suggest what the problem might be here?  And any possible solutions?

    Thanks,I have read that article.  Based on that article the NetStreamInfo.maxBytesPerSecond is not an accurate measurement to base dynamic switching on. This seems to be the basis of the bitrate switching in both the longtail player, and the adobe examples that I have tried.   That article suggests using the dropped frames property, in conjunciton with bufferlength to determine if switching is neccessary.  Unfortunately I can't seem to find a player online which handles this successfully.  That being said, I can't believe I'm the only person trying to implement dynamic bitrate switching for live streams so surely there are some players out there which can do this successfully?  If anyone knows of any code available which does this successfully I would appreciate knowing where!  The examples provided by Adobe https://www.adobe.com/cfusion/entitlement/index.cfm?e=fms35 unfortunately don't work either.

  • Video playback stops at first bitrate switch

    When playing my manifest file for HTTP dynamic streaming, it will play the first bitrate (150), however, at exactly 6 seconds, it tries to switch to a higher bitrate (1500) and the video stops playing, but the audio continues.
    I have tried multiple manifest files, but it happens the same with each one.
    Any idea what could cause this?
    Thanks,
    Dan

    Since we dont' get access to the server, we are unable to debug from our side. One thing you may want to find out is where the video playback stops at code level. Does it stop at play2 method or somewhere else. NetStreamPlayTrait has two methods, doPlay and doPlay2. You may set up break points at each function to find out whether the NetStreamPlayTrait has been instructed by the switch manager to **** bitrate. If it does, relevant function in the same class you may want to set break points are onNetStatus and onPlayStatus to look for error events. Please let me know of your discovery. Thanks!
    -Wei Zhang
    Senior Computer Scientist
    Adobe Systems
    [email protected]

  • Flash Media Player which handles bitrate switching for live streams?

    Hello.  I've got a very short timescale to find a solution for a way to display livestreams with bitrate switching. Does anyone
    know of any opensource players which can do this effectively?  Or do the inbuilt components in CS4 deal with this ok?

    Thanks,I have read that article.  Based on that article the NetStreamInfo.maxBytesPerSecond is not an accurate measurement to base dynamic switching on. This seems to be the basis of the bitrate switching in both the longtail player, and the adobe examples that I have tried.   That article suggests using the dropped frames property, in conjunciton with bufferlength to determine if switching is neccessary.  Unfortunately I can't seem to find a player online which handles this successfully.  That being said, I can't believe I'm the only person trying to implement dynamic bitrate switching for live streams so surely there are some players out there which can do this successfully?  If anyone knows of any code available which does this successfully I would appreciate knowing where!  The examples provided by Adobe https://www.adobe.com/cfusion/entitlement/index.cfm?e=fms35 unfortunately don't work either.

  • How to fast manual switching between streams in osmf plugin

    I just want to manual switching between streams using osmf plugin in custom player. For this I have use following code.
    mediaPlayer.autoDynamicStreamSwitch = false; mediaPlayer.switchDynamicStreamIndex(bitrateAdaptive.selectedIndex); mediaPlayer.addEventListener(DynamicStreamEvent.SWITCHING_CHANGE, onSwitchingChange);
    I am playing smil file streaming by wowza streaming server but code work but switch between streams very slow. It takes about 20 to seconds for switching which is not expected in this case.

    I just want to manual switching between streams using osmf plugin in custom player. For this I have use following code.
    mediaPlayer.autoDynamicStreamSwitch = false; mediaPlayer.switchDynamicStreamIndex(bitrateAdaptive.selectedIndex); mediaPlayer.addEventListener(DynamicStreamEvent.SWITCHING_CHANGE, onSwitchingChange);
    I am playing smil file streaming by wowza streaming server but code work but switch between streams very slow. It takes about 20 to seconds for switching which is not expected in this case.

  • How to switch fullscreen mode with normal mode in OSMF with mediacontainer and mediaplayer?

    i use OSMF to make a video player ,use the mediacontainer and mediaplayer ,all works right but to switch from normal to fullscreen mode ,i don't know how ?
    because my videoplayer can be resized with some ratio ect 50%.
    anyone do something similar to this? any help?
    thanks very much!

    I did this:
    public function toggleFullScreen( event:Event=null ):void
    if( this.stage.displayState == StageDisplayState.NORMAL )
    // set full screen display
    this.stage.scaleMode = StageScaleMode.NO_SCALE;
    $playerInstance.width = $stage.fullScreenWidth;
    $playerInstance.height = $stage.fullScreenHeight;
    bg.height = $stage.fullScreenHeight;
    $playerInstance.addChild(controlBar2);
    LayoutMetadata($playerInstance.media.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE)).scaleMo de= ScaleMode.ZOOM;
    var resultRect:Rectangle = new Rectangle(0, 0, $stage.fullScreenWidth, $stage.fullScreenHeight);
    stage.fullScreenSourceRect = resultRect;
    this.stage.displayState = StageDisplayState.FULL_SCREEN;
    else
    $playerInstance.width = 600;
    $playerInstance.height = 400;
    $playerInstance.mediaContainer.width = 600;
    $playerInstance.mediaContainer.height = 400;
    LayoutMetadata($playerInstance.media.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE)).scaleMo de= ScaleMode.LETTERBOX;
    bg.height = 400;
    // set normal display
    stage.fullScreenSourceRect = null;
    this.stage.scaleMode = StageScaleMode.NO_SCALE;
    this.stage.displayState = StageDisplayState.NORMAL;

  • [svn:osmf:] 17758: Fix FM-1048: SwitchingProxyElement switches early on first switch.

    Revision: 17758
    Revision: 17758
    Author:   [email protected]
    Date:     2010-09-17 16:24:35 -0700 (Fri, 17 Sep 2010)
    Log Message:
    Fix FM-1048: SwitchingProxyElement switches early on first switch.  The switch timer now starts upon load completion, not upon initialization.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-1048
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/switchingproxy/Switchin gProxyElement.as

  • [svn:osmf:] 14019: Restore manual switch mode default to false.

    Revision: 14019
    Revision: 14019
    Author:   [email protected]
    Date:     2010-02-05 16:39:41 -0800 (Fri, 05 Feb 2010)
    Log Message:
    Restore manual switch mode default to false.  But always set it to true at the NetLoader level, so that the switching manager can handle the transition logic.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingNetLoader.as

    Revision: 14019
    Revision: 14019
    Author:   [email protected]
    Date:     2010-02-05 16:39:41 -0800 (Fri, 05 Feb 2010)
    Log Message:
    Restore manual switch mode default to false.  But always set it to true at the NetLoader level, so that the switching manager can handle the transition logic.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingNetLoader.as

  • OSMF in AIR has video disapper when switching to fullscreen using AIR runtime 3.8 and above

    We have an application that loads StrobeMediaPlayback in an AIR application to play videos. But once we've upgraded to AIR runtime 3.8 and above, the fullscreen stops working: video is missing but audio is still playing. This is reported to be happening to our users using Windows that 64-bit and a few reports with 32-bit Windows (ie Win7 and Win8).
    Looking at it closely, it looks like the StageVideo introduced to AIR desktop from AIR 3.8+ runtime was causing the problem. I can disable stageVideo in the player (OSMFSettings.enableStageVideo = false) and it can work fine (or turn off hardware acceleration in the computer). But the real problem I think is that the StageVideoAvailibiltyEvent is not returning the correct value if the machine really supports StageVideo or not. This looks like a bug in AIR runtime.

    Could you please open a new bug report on this over at https://bugbase.adobe.com?  When adding the bug, please include some sample code or a sample application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the URL so that others effected can add their comments and votes.
    Thanks,
    Chris

  • Flash player to show current bitrate on a graph

    Hi guys,
    As I remember, Adobe had one flash player that can show current video bitrate on a graph which is really useful when you want to show people how smooth FMS works when it switch between different bitrates.
    I want that player.
    Thanks a lot.

    Are you talking about the OSMF player that is on the media servers default webpage, "amsInstallDir/webroot/swfs/adobedemoplayer_pc.swf"?
    I am not sure which player it's based on, or if they included the source for it. I hope they did.
    If anyone else has more details, please share!
    Message was edited by: rjp421

  • Switching in workspace between any item to Emails takes 45 seconds for mail to display.

    Have a blackberry Q5 on OS10.3. via BES 12.  When switching between items in workspace it takes 45 seconds to switch and siplay mail in corporate email account.  Any switching between other items is instant.
    Device has been replaced twice.
    device has been reloaded and also used OS 10.2
    User account on BES server has been created on BES 12 server.
    This only happens when you switch to look at your emails.  Other than that, the device is working.

    Hi Andy,
    The switching time depends on the client buffer state and the keyframe interval of the content.  The switch is not complete until it is visible to the user, meaning the buffer has to play through.  So if the client has buffered 15 seconds of content, it will take around 15 seconds to make the switch.  This also depends on your FMS settings since keyframes can be generated on the fly.
    This is easy to monitor if you turn on logging for the OSMF Flex project.  You'll see something like this in your log:
    Calling for switch to 4 at 1708 kbps
    Switching to index 4 at 1708 kbps
    event.info.code=NetStream.Play.Transition
    info.code=NetStream.Play.TransitionComplete
    Transition complete to index: 4 at 1708 kbps
    The "NetStream.Play.Transition" means the server has acknowledged the request and has begun the switching process.  The "NetStream.Play.TransitionComplete" is an in-stream event and this means the switch is visible to the user (the buffer has played thru and the new bitrate stream is now viewable).  The time between the "Transition" and the "TransitionComplete" will be very close to the size of the current buffer.  I don't belive we are logging the current buffer size right now, but you can easily do that in your player by getting to the netStream object via the LoadTrait (in sprint 10, sprint 9 will be the loadedContext). There is another thread here about getting to the netStream object if you want to try this yourself.
    Hope that helps,
    - charles

Maybe you are looking for

  • What are the best archiving methods for small colleges?

    Hi Folks, Im thinking a few terabyte hard drives will be my best option for a hundred dollars each. We have a small operation here at a New England college with two editing systems that get a good amount of student use and use by myself for college n

  • New user creation in AE- user group not getting assigned

    Hi All, Here is a typical case, wherein when we create a new user with AE for the production system, the user gets created and the roles are also assigned but the user group is not getting assigned. The user group is being fetched from a table from t

  • Link doesn't work ?

    Hi When I open Nokia Ovi Suite, It shows few Recommendations apps from Ovi for my phone. It also shows a link on the corner "View more at Ovi Store". When I click on this link, nothing happens. I have tried installing this suite again, but it doesn't

  • Shared Objects: How to store and read multiple instances

    Hi, Can we store multiple instances of Shared Objects in memory and read the desired instance. e.g If i execute the below program twice then also it will create only a single instance in the memory. Can we create a memory object with a key and then r

  • Need help with BW BADI routine...?URGENT...

    Gurus, I have been given a requirement to implement a BADI UC_TASK_CUSTOM: This BADI is called from consolidation monitor in BW via a BCS custom task. In this BADI i have to extract data from a BCS virtual cube and perform mappings and data transform