OSMF HTTP Stream seek bug...

(This was also posted in Flash as I couldn't find the OSMF forum!)
Hi,
I have built an OSMF player that allows users to seek to where they were when resuming, but also to scrub back to the beginning.
EG:
A stream is 1 minute long.
User starts play at 25 seconds.
User can scrub back to 5 seconds or forward to 55 seconds.
This works perfectly with RTMP - TimeTrait reports correctly and video displays correctly.
EG:
Start at 25 seconds, TimeTrait reports: duration = 60, current position = 25 and displaying video is 25.
Seek to 5 seconds rewinds to current duration = 60, position = 5, displaying video is 5.
But...
With HTTP streams...
Start at 25 seconds. TimeTrait reports: duration = 60, current position = 25 and displaying video is 50.
Seek to 5 seconds rewinds to before the start of the stream and gives me a media complete... end of stream.
Start at 30 seconds, TimeTrait reports duration = 60, current position = 30 and displaying video is 60 so gives me a media complete... end of stream.
It is pretty clear that what is happening is that HTTP stream seeking is resetting my start index to the seek point, as if I had started play with:
NetStream.play(seekPoint);
Rather than:
NetStream.play();
NetStream.seek(seekPoint);
This, I hasten to add, is a horrendous issue from my client's point of view as it effectively means I cannot allow resume of content.
Does anybody have any ideas, workarounds?
G

Hi,
HTTPNetStream.as not able to use because of SWC component using for entire OSMF framework application. Can you please advise how to use it.
I am using below code to play http mp4 video and local video i.e. c:\myfolder\myvideo.mp4  or myfolder/myvideo.mp4 etc.
     netLoader = new NetLoader();
  mediaElement=new VideoElement(urlResource,netLoader);
  initOSMFPlayer(mediaElement, true);
private function initOSMFPlayer(medElement:*, autoStart:Boolean=false):void {
  //trace("Media Element changed Successfully" +medElement);
  try {
  mediaPlayer=new MediaPlayer(mediaElement);
  mediaPlayer.addEventListener(DisplayObjectEvent.MEDIA_SIZE_CHANGE, _onSizeChange);
  mediaPlayer.addEventListener(MediaErrorEvent.MEDIA_ERROR, onMediaError, false, 0, true);
  mediaPlayer.addEventListener(MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE, playerStateChange, false, 0, true);
  mediaPlayer.addEventListener(PlayEvent.PLAY_STATE_CHANGE, currentState, false, 0, true);
  mediaPlayer.addEventListener(TimeEvent.COMPLETE, videoComplete, false, 0, true);
  mediaPlayer.addEventListener(MediaPlayerCapabilityChangeEvent.CAN_SEEK_CHANGE, canSeekChange, false, 0, true);
  mediaPlayer.autoPlay=autoStart;//autoStart;
  mediaPlayer.bufferTime=1;
  mediaContainer.visible=false;
  mediaContainer.addMediaElement(mediaElement);
  if ((urlType=="HTTP" || urlType=="Undefined") && !autoStart) {mediaPlayer.stop();}
  stageResize();
  } catch (e:*) {
  trace("Error found in loading OSMF FRamework");
  //trace("MediaPlayer Error: " + e.toString() + " " + e.type);
  //controller.insertLog("Error found in OSMF Player Framework...");
  //controller.updatePlayerError(ErrorType.UNSUPPORTED_FORMAT);
Please advise if any things else need to change to use actual HTTPNetStream.as    ( org.osmf.net.httpstreaming.HTTPNetStream);
Please advise.

Similar Messages

  • OSMF HTTP Stream Memory Leak

    Hello,
    When you stream Media with the help of f4m,
    one segment is downloaded and played back.
    But after playback, they remain in RAM and accumulate!
    Is there a way that those played parts are automatically removed from Memory like it's down with a real RTMP stream ?
    So what does that mean?
    If you stream a live event which lasts over several hours, the streamed data will accumulate in Memory and force a crash.
    This will especially happen on systems with a low amount of memory (netbooks, mobiles, older pc's or even desktiops which use the RAM for more than streaming...)
    Regards
    Marc

    Hi,
    Thank you for the information, I raised an issue for you at http://bugs.adobe.com/jira/browse/FM-1286. We'll prioritize it and investigate it accordingly.
    It might be caused by OSMF or even by Flash Player.
    Please feel free to subscribe to the bug so you'll track it easier. Also, if you happen to find other problems, please use the bugtracker to report it.
    S.

  • [svn:osmf:] 16045: To fix bug FM-760, add a test suite for http streaming video.

    Revision: 16045
    Revision: 16045
    Author:   [email protected]
    Date:     2010-05-11 16:35:52 -0700 (Tue, 11 May 2010)
    Log Message:
    To fix bug FM-760, add a test suite for http streaming video.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/OSMFIntegrationTests.as

    (Removed)

  • [svn:osmf:] 13561: Initial check-in of HTTP streaming implementation.

    Revision: 13561
    Revision: 13561
    Author:   [email protected]
    Date:     2010-01-17 22:21:46 -0800 (Sun, 17 Jan 2010)
    Log Message:
    Initial check-in of HTTP streaming implementation.
    Modified Paths:
        osmf/trunk/apps/samples/framework/WebPlayer/src/WebPlayer.as
        osmf/trunk/framework/MediaFramework/.flexLibProperties
        osmf/trunk/framework/MediaFramework/org/osmf/manifest/F4MLoader.as
        osmf/trunk/framework/MediaFramework/org/osmf/manifest/ManifestParser.as
        osmf/trunk/framework/MediaFramework/org/osmf/media/DefaultMediaFactory.as
        osmf/trunk/framework/MediaFramework/org/osmf/metadata/MetadataNamespaces.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/NetClient.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/NetStreamPlayTrait.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/NetStreamUtils.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/dynamicstreaming/DynamicNetStream.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/dynamicstreaming/NetStreamDynamicStreamT rait.as
        osmf/trunk/framework/MediaFramework/org/osmf/video/VideoElement.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/MediaFrameworkTests.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/manifest/TestManifestParser.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/net/TestNetStreamUtils.as
    Added Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/events/HTTPStreamingFileHandlerEvent.as
        osmf/trunk/framework/MediaFramework/org/osmf/events/HTTPStreamingIndexHandlerEvent.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPStreamRequest.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPStreamingFileHandlerBa se.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPStreamingIndexHandlerB ase.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPStreamingIndexInfoBase .as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPStreamingNetLoader.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPStreamingNetStreamDyna micStreamTrait.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPStreamingState.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/HTTPStreamingUtils.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/URLLoaderWithContext.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/AdobeBootstrapBox.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/AdobeFragmentRandomAcc essBox.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/AdobeFragmentRunTable. as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/AdobeSegmentRunTable.a s
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/Box.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/BoxInfo.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/BoxParser.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/F4FConstants.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/FragmentDurationPair.a s
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/FullBox.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/GlobalRandomAccessEntr y.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FFileHa ndler.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexH andler.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexI nfo.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FStream Info.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/LocalRandomAccessEntry .as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/MediaDataBox.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/f4f/SegmentFragmentPair.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/flv/
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/flv/FLVHeader.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/flv/FLVParser.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/flv/FLVParserState.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/flv/FLVTag.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/flv/FLVTagAudio.as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/flv/FLVTagScriptDataObject .as
        osmf/trunk/framework/MediaFramework/org/osmf/net/httpstreaming/flv/FLVTagVideo.as
        osmf/trunk/framework/MediaFrameworkFlexTest/assets/mp4_bytes.txt
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/net/httpstreaming/
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/net/httpstreaming/f4f/
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/net/httpstreaming/f4f/TestAdobeBoots trapBox.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/net/httpstreaming/f4f/TestAdobeFragm entRunTable.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/net/httpstreaming/f4f/TestAdobeSegme ntRunTable.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/net/httpstreaming/f4f/TestBoxParser. as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/osmf/net/httpstreaming/f4f/TestHTTPStream ingF4FFileHandler.as

    Hi.
    So far I have extended the VideoElement to support a extended NetStreamLoadTrait as you suggested.
    My code is the following:
    override protected function processLoadStateChange(
    newState:String, newContext:ILoadedContext):void
                if (newState == LoadState.READY)
                     var context:NetLoadedContext = newContext as NetLoadedContext;
                    netStream = context.stream;
                    if (    !isStreamingResource
                         && (  netStream.bytesTotal <= 0
                              || netStream.bytesTotal == uint.MAX_VALUE
                        netStream.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                else if (newState == LoadState.UNINITIALIZED)
                    netStream = null;
            private function onNetStatus(event:NetStatusEvent):void
                if (netStream.bytesTotal > 0)
                    dispatchEvent
                        ( new LoadEvent
                            ( LoadEvent.BYTES_TOTAL_CHANGE
                            , false
                             , false
                            , null
                            , netStream.bytesTotal
                    netStream.removeEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
    But no matter what I change, always a new Extended VideoElement is created, the playhead backs to 0.
    Can you explain more how you would modify the NetStreamLoadTrait or LoadTrait to work together with the seek?
    Thanks a lot,
    Chaim

  • [svn:osmf:] 15288: 1. Add http streaming DVR support

    Revision: 15288
    Revision: 15288
    Author:   [email protected]
    Date:     2010-04-08 14:50:27 -0700 (Thu, 08 Apr 2010)
    Log Message:
    1. Add http streaming DVR support
    2. Fix FM-497, FM-610 and FM-618
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-497
        http://bugs.adobe.com/jira/browse/FM-610
        http://bugs.adobe.com/jira/browse/FM-618
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/Manifest.as
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/ManifestParser.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataNamespaces.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamSwitchManager.as
        osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastNetConnectionFactory.as
        osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastNetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingNetLoader.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingUtils.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexInfo.as
    Added Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/DVRInfo.as
        osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRUtils.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/dvr/
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/dvr/HTTPStreamingDVRCastDVRTrait.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/dvr/HTTPStreamingDVRCastTimeTrait.as

    Hi,
    We have an issue referring to that http://bugs.adobe.com/jira/browse/ST-422 . It was raised in SMP, but its roots are in OSMF.
    This issue appears on RTMP only, not in HDS.

  • How can I play live http streaming in osmf?

    Hi,
    I was trying to play live http streaming in osmf player but it was saying "Error #1009: Cannot access a property or method of a null object reference.". I think I need to do some change in OSMF player code to play live as vod plays fine. Can anybody point me in that direction?
    Thanks and Regards,
    Amit

    I downloaded StrobeMediaPlayback from https://sourceforge.net/projects/smp.adobe/files_beta/StrobeMediaPlayback_1.5_Sprint-4/ (10.1 version) and it is working for me.
    By the way when I try to play live Http in debug flash player with my previous player then I get following error :
    VerifyError: Error #1014: Class org.osmf.net.httpstreaming.f4f::AdobeBootstrapBox could not be found.
                    at org.osmf.net.httpstreaming::HTTPStreamingNetLoader/createNetStream()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\net\httpstreaming\HTTPStreamingNetLoader.as:86]
                    at org.osmf.net::NetLoader/finishLoading()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\net\NetLoader.as:406]
                    at org.osmf.net::NetLoader/startLoadingHTTP()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\net\NetLoader.as:724]
                    at org.osmf.net::NetLoader/executeLoad()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\net\NetLoader.as:289]
                    at org.osmf.traits::LoaderBase/load()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\traits\LoaderBase.as:111]
                    at org.osmf.traits::LoadTrait/load()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\traits\LoadTrait.as:170]
                    at org.osmf.media::MediaPlayer/load()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\media\MediaPlayer.as:1854]
                    at org.osmf.media::MediaPlayer/updateTraitListeners()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\media\MediaPlayer.as:1497]
                    at org.osmf.media::MediaPlayer/onTraitAdd()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\media\MediaPlayer.as:1332]
                    at flash.events::EventDispatcher/dispatchEventFunction()
                    at flash.events::EventDispatcher/dispatchEvent()
                    at org.osmf.elements::ProxyElement/processTraitsChangeEvent()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\elements\ProxyElement.as:475]
                    at org.osmf.elements::ProxyElement/onTraitAdd()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\elements\ProxyElement.as:436]
                    at flash.events::EventDispatcher/dispatchEventFunction()
                    at flash.events::EventDispatcher/dispatchEvent()
                    at org.osmf.elements::ProxyElement/set proxiedElement()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\elements\ProxyElement.as:182]
                    at org.osmf.elements::LoadFromDocumentElement/onLoadStateChange()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\elements\LoadFromDocumentElement.as:152]
                    at flash.events::EventDispatcher/dispatchEventFunction()
                    at flash.events::EventDispatcher/dispatchEvent()
                    at org.osmf.elements.proxyClasses::LoadFromDocumentLoadTrait/loadStateChangeEnd()[C:\Documen ts and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\elements\proxyClasses\LoadFromDocumentLoadTrait.as:50]
                    at org.osmf.traits::LoadTrait/setLoadState()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\traits\LoadTrait.as:266]
                    at org.osmf.traits::LoadTrait/onLoadStateChange()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\traits\LoadTrait.as:417]
                    at flash.events::EventDispatcher/dispatchEventFunction()
                    at flash.events::EventDispatcher/dispatchEvent()
                    at org.osmf.traits::LoaderBase/updateLoadTrait()[C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\traits\LoaderBase.as:208]
                    at Function/org.osmf.elements:F4MLoader/protected:executeLoad/org.osmf.elements:finishLoad() [C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\elements\F4MLoader.as:211]
                    at Function/org.osmf.elements:F4MLoader/protected:executeLoad/org.osmf.elements:onComplete() [C:\Documents and Settings\akuma\Adobe Flash Builder 4\OSMFPlayer\src\org\osmf\elements\F4MLoader.as:192]
                    at flash.events::EventDispatcher/dispatchEventFunction()
                    at flash.events::EventDispatcher/dispatchEvent()
                    at flash.net::URLLoader/onComplete()
    Regards,
    Amit

  • [svn:osmf:] 15001: Implement a better http streaming unit testing structure .

    Revision: 15001
    Revision: 15001
    Author:   [email protected]
    Date:     2010-03-24 15:14:02 -0700 (Wed, 24 Mar 2010)
    Log Message:
    Implement a better http streaming unit testing structure.
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/HTTPStreamingTestsHelper.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/f4f/TestAdobeBootstrapBox.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/AdobeBootstrapBoxDescriptor.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/AdobeFragmentRunTableDescriptor. as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/AdobeSegmentRunTableDescriptor.a s
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/FragmentRunTableEntryDescriptor. as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/SegmentRunTableEntryDescriptor.a s

    Revision: 15001
    Revision: 15001
    Author:   [email protected]
    Date:     2010-03-24 15:14:02 -0700 (Wed, 24 Mar 2010)
    Log Message:
    Implement a better http streaming unit testing structure.
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/HTTPStreamingTestsHelper.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/f4f/TestAdobeBootstrapBox.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/AdobeBootstrapBoxDescriptor.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/AdobeFragmentRunTableDescriptor. as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/AdobeSegmentRunTableDescriptor.a s
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/FragmentRunTableEntryDescriptor. as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/SegmentRunTableEntryDescriptor.a s

  • [svn:osmf:] 14133: First check in to support stream metadata in http streaming.

    Revision: 14133
    Revision: 14133
    Author:   [email protected]
    Date:     2010-02-11 14:21:14 -0800 (Thu, 11 Feb 2010)
    Log Message:
    First check in to support stream metadata in http streaming.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/events/HTTPStreamingFileHandlerEvent.as
        osmf/trunk/framework/OSMF/org/osmf/events/HTTPStreamingIndexHandlerEvent.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FFileHandler.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as

    What you are missing is the fact that you get the trait from the MediaElement you just created with your MediaFactory.
    You should also be extending the DefaultMediaFactory since it has built in MediaFactoryItems.
    var defaultMediaFactory:DefaultMediaFactory = new DefaultMediaFactory();
    var mediaElement:MediaElement = createMediaElement(videoResource: URLResource); //your resource
    var dynamicStreamTrait:DynamicStreamTrait = mediaElement.getTrait(MediaTraitType.DYNAMIC_STREAM) as DynamicStreamTrait;
    //work with the trait
    dynamicStreamTrait.autoSwitch = false;
    dynamicStreamTrait.switchTo(yourBitrateIndex);

  • [svn:osmf:] 13828: 1. Add MBR + DRM support for http streaming

    Revision: 13828
    Revision: 13828
    Author:   [email protected]
    Date:     2010-01-27 14:56:10 -0800 (Wed, 27 Jan 2010)
    Log Message:
    1. Add MBR + DRM support for http streaming
    2. Fix unit TestManifestParser.as to reflect the changes
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/manifest/ManifestParser.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamPlayTrait.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as
        osmf/trunk/framework/OSMF/org/osmf/video/VideoElement.as
        osmf/trunk/framework/OSMFTest/org/osmf/manifest/TestManifestParser.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:] 13754: Restore ability for HTTP streaming index handler to send /receive arbitrary context associated with an index, per Matthew's feedback .

    Revision: 13754
    Revision: 13754
    Author:   [email protected]
    Date:     2010-01-25 10:56:31 -0800 (Mon, 25 Jan 2010)
    Log Message:
    Restore ability for HTTP streaming index handler to send/receive arbitrary context associated with an index, per Matthew's feedback.
    Modified Paths:
        osmf/trunk/framework/OSMF/.flexLibProperties
        osmf/trunk/framework/OSMF/org/osmf/events/HTTPStreamingIndexHandlerEvent.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingIndexHandlerBase.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as
    Removed Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/URLLoaderWithContext.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • [svn:osmf:] 14192: first checkin of http streaming live support

    Revision: 14192
    Revision: 14192
    Author:   [email protected]
    Date:     2010-02-16 10:43:11 -0800 (Tue, 16 Feb 2010)
    Log Message:
    first checkin of http streaming live support
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/AdobeFragmentRunTable.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • [svn:osmf:] 14817: Temporarily disable http streaming related tests to have integration build back online .

    Revision: 14817
    Revision: 14817
    Author:   [email protected]
    Date:     2010-03-17 10:29:27 -0700 (Wed, 17 Mar 2010)
    Log Message:
    Temporarily disable http streaming related tests to have integration build back online.
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as

    Revision: 14817
    Revision: 14817
    Author:   [email protected]
    Date:     2010-03-17 10:29:27 -0700 (Wed, 17 Mar 2010)
    Log Message:
    Temporarily disable http streaming related tests to have integration build back online.
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as

  • HTTP Streaming and BitmapData.draw

    Hi OSMF Experts,
    I've tried to duplicate segments of a Video with BitmapData.draw.
    It's working with RTMP (set videoSampleAccess server side).
    Progressive is also working (crossdomain.xml is ok).
    BitmapData.draw doesn't work with HTTP Streaming! (Using *.f4m). What's the way to get this working? Following Error is thrown:
    SecurityError: Error #2123: Verletzung der Sicherheits-Sandbox: BitmapData.draw: file:///C|/players/myVideoTestHTTP.swf kann nicht auf null zugreifen. Es haben keine Richtliniendateien Zugriff gewährt.
    I've used OSMF 2.0 for the Tests. And I've testet with the sample.mp4/manifest.f4m example.
    Thanks for your answers.
    Greets
    Martin

    Have you seen bug CSCdx31582- Macintosh wont play WMT from CE (ecdn). Guess this is similar to the issue that you have.

  • Anybody found a fix for the netstream.seek bug?

    The bug I am talking about is only being able to seek to a point in a video that the play head has been before.
    Here is how the bug is described at :http://www.brooksandrus.com/blog/2005/12/17/5-reasons-netstream-sucks/
    "Seeking is super slow until all keyframes are cached. No bull, if you have a file which you’ve completely preloaded, the keyframes aren’t cached until the video playhead reaches that point in time for the first time. If I load a file and seek to the end, the player has to chug through all of the keyframes prior to my seek point. This is slow, slow if I have video of even several minutes."
    That was posted 5 years ago. I have found the bug referenced in the following posts:
    http://forums.adobe.com/message/1917914#1917914
    http://forums.adobe.com/message/692394?tstart=0
    I would assume that since this bug has been around for at least 5 years, there would a bug report filed for it or a work around found. But I can't seem to find either.
    I have tried multiple codecs and encodings with no luck. I'm having a hard time accepting that there is not fix for this problem. Flash has to read and cache the key frame information of the entire video before being able to seek to the end. Does anybody know where the flash player writes this information? Let me be clear, this is not streaming video, this is video that is running local off the hard drive. The flash player stores this key frame information somewhere until the computer is restarted. At that point when the video is played again, it has to read the entire file again. You can close and open the player multiple times and it will only perform the caching the first time and not again until a computer restart.
    again, I am not trying to seek to a point that has not been loaded yet. This is a swf that loads a video off the hard drive.
    One that that I have noticed is that when H.264 files are loaded, the player immediately performs the caching scan before it begins to play. When it is finished, you can seek to any point quickly. The time it takes for the caching scan is dependent upon the size of the file and the number of keyframes it has. Whereas the rest of the video codecs will play immediately but will only seek quickly to cached keyframes.
    I have only seen this problem discussed in a few spots, with no solutions. it is a very old bug. Has anybody found a fix, work around or bug report on it?
    Thanks for your help
    -Mike

    package {
        import flash.display.Sprite;
        import flash.events.NetStatusEvent;
        import flash.events.SecurityErrorEvent;
        import flash.events.TimerEvent;
        import flash.media.Video;
        import flash.net.NetConnection;
        import flash.net.NetStream;
        import flash.text.TextField;
        import flash.utils.Timer;
        import flash.utils.getTimer;
         [SWF(width="400", height="600", backgroundColor="#FFFFFF")]
         public class SeekTest extends Sprite
              private var videoURL:String = "test.flv";
            private var connection:NetConnection;
            private var stream:NetStream;
              private var tick:Timer;
              private var startTime:int;
              private var skipCount:int;
              private var duration:Number;
              private var txt:TextField;
              public function SeekTest()
                   txt = new TextField();
                   txt.wordWrap = true;
                   txt.height = 300;
                   txt.width = 400;
                   addChild(txt);
                   tick = new Timer(0.1);
                   tick.addEventListener(TimerEvent.TIMER, checkLoad);
                   connection = new NetConnection();
                connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
                connection.connect(null);
              private function netStatusHandler(event:NetStatusEvent):void {
                    //print("Net Status:", event.info.code);
                switch (event.info.code) {
                    case "NetConnection.Connect.Success":
                        connectStream();
                        break;
                    case "NetStream.Play.StreamNotFound":
                        print("Stream not found: " + videoURL);
                        break;
                        case "NetStream.Seek.Notify":
                             print("--- Seek Completed in", (flash.utils.getTimer() - startTime)/1000, "seconds.");
                             seekDone();
                             break;
            private function securityErrorHandler(event:SecurityErrorEvent):void {
                print("securityErrorHandler: " + event);
            private function connectStream():void {
                stream = new NetStream(connection);
                stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                var metaOb:Object = new Object;
                metaOb.onMetaData = metadata;
                stream.client = metaOb;
                var video:Video = new Video();
                    video.height = 300;
                   video.width = 400;
                   video.y = 300;
                video.attachNetStream(stream);
                startTime = flash.utils.getTimer();
                stream.play(videoURL);
                addChild(video);
                tick.start();
            public function metadata(info:Object):void
                 duration = info.duration;
                 print("Metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate);
              private function checkLoad(e:TimerEvent):void
                   var seconds:Number = (flash.utils.getTimer() - startTime) / 1000
                   if(stream.bytesLoaded == stream.bytesTotal && stream.bytesTotal != 0 && seconds > 3)
                        skipCount = 0;
                        print("Video 100% Loaded. Performing first seek after 3 seconds of video playing.");
                        tick.stop();
                        startTime = flash.utils.getTimer();
                        stream.seek(duration - 2);
              private function seekDone():void
                   if(skipCount == 0)
                        //just skipped to the end of the video the first time
                        //jump back to the begining and do it again.
                        startTime = flash.utils.getTimer();
                        print("Seeking back to the begining to time the second seek to the end.")
                        stream.seek(0);
                   }else if(skipCount == 1)
                        startTime = flash.utils.getTimer();
                        print("Second seek to the end. ")
                        stream.seek(duration - 2);
                   skipCount++;
              private function print(... args):void
                   trace(args)
                   txt.appendText(String(args.join(" ")) + "\n\n");
    The above is a simple test I put together. Use a large FLV for the testing. Remember, the first seek to the end will be the longest and you may not get the same results unless you restart or use another FLV.

  • Need a hand to configure FMS 4.5 to output HTTP stream...

    Hi folks!
    I'm trying to setup Flash Media Server (Streaming server) and I'm having issues with outputting HTTP stream.
    The system works very well with the Flash ooutput, but for some reason the livepkgr won't work. Tried several things over the past two weeks, I've went thru docs and I don't know anymopre what else I can try... The source of the video feed is upstreamed from my own home computer, via Flash Live Encoder.
    I operate a dedicated server, running Windows 2008 Server. The default web site is IIS. I configured the ports so that port 80 is the default IIS inetpub/webroot, and the FMS 4.5 install is accessed via port 8134. So the IP http://184.107.48.113 opens the default Windows IIS, and http://184.107.48.113:8134 takes the request to the FMS install.
    The video stream is live on the Flash server, I can see it in the console, the livepkgr appears to be working, and I do see the .STREAM file being generated in the _definst_/livebroadcast/livestream folder. So the server works, and process the HTTP output.
    I believe the URL I should use to access the output HLS stream is: http://184.107.48.113:8134/livepkgr/_definst_/livebroadcast/livestream.f4m.m3u8
    but it returns a file not found message. Is there something wrong with the URL syntax? Or there is something else in the .conf files I must tweak? Or is it an issue with Apache 2.2 configuration?
    You can see the live Flash stream from my web site http://www.blackflag.tv I want to change this Flash stream to HTTP stream.
    Thanks for your help folks!!!
    -sv bell

    Hey,
    I tried playing HDS now and its working fine. It wasn't playing earlier.
    You can try it out by playing the content through the player here: http://www.osmf.org/configurator/fmp/#
    Input: http://184.107.48.113:8134/hds-live/livepkgr/_definst_/livebroadcast/l ivestream.f4m
    (Don't forget to select the radio button for HTTP streaming)
    This means everything is working on the server side.
    Now, I don't have an iDevice on me to check out HLS playback.
    You are using an older version of QuickTime, which could be an issue. Please let me know what publish settings you are using (as in the codecs).
    Also can you try playing it back through HTML5. To do that, just create an HTML page with the below content.
    <!DOCTYPE html>
    <html>
    <head>
    <title>Title of the document</title>
    </head>
    <body>
    <video width="320" height="240" controls="controls" src="http://184.107.48.113:8134/hls-live/livepkgr/_definst_/livebroadcast/livestream.m3u8"  />
    </body>
    </html>

Maybe you are looking for

  • Media Controls for the Qosmio x505 q870

    Hi there, I recently purchased the Qosmio X505 q870 machine, and it came with the side media center control panel. Everytime one of those buttons is pushed, a loud beep is produced, and even muting the speakers still causes this beep. I am wondering

  • How do I get scroll bars to work

    I get a vertical scroll bar where I don't want one.  The horizontal one (see attachment) is needed as the form gets quite wide when it is in Spanish.  But despite turning off verticalScrollPolicy everywhere, one of them still appears. <mx:AddChild re

  • Just bought a new iMac- where to download Photoshop CS6

    I'm a CC annual subscriber (or whatever they call it- I pay monthly for Adobe) and I just purchased a new iMac.  I'm trying to setup everything (migration assistant didn't work).  Where do I download Photoshop CS6?

  • Edit Parked Challan

    Hi all, im facing a problem in editing parked challans. i developed a function module which can edit already parked challans for whom GRs has not been prepared. it is editing the quantity accroding to parked quantity. there is  a condition that it sh

  • 200996

    Hi I converted DAQmx assistant (coversion attached below). I get the following error: Error 200996 (DAQmx Write Wfm NChan NSamp.vi) Possible reason(s): Measurements: Data Transfer Mechanism is not set to Programmed I/O, which is the only value suppor