11 Replies Latest reply on Nov 13, 2010 2:06 PM by MarioVieira.net

    How can I play live http streaming in osmf?

    Amit Kumar Adobe Employee

      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

        • 1. Re: How can I play live http streaming in osmf?
          Silviu Vergoti Adobe Employee

          Most likely you did not compile it with  -define CONFIG::FLASH_10_1 true.

           

          You can verify your live http stream in Flash Media Playback by using the configurator page at http://www.osmf.org/configurator/fmp (make sure you select HTTP streaming option and select streamType=live )

          • 2. Re: How can I play live http streaming in osmf?
            Amit Kumar Adobe Employee

            I am using below to comiple:

             

            -define CONFIG::DEBUG true -define CONFIG::FLASH_10_1 false -define CONFIG::LOGGING false -defaults-css-url=assets/default.css

             

            Regards,

            Amit

            • 3. Re: How can I play live http streaming in osmf?
              Silviu Vergoti Adobe Employee

              Did you set the Flash version to be 10.1.0?

               

              You can find more info in:

               

              http://forums.adobe.com/message/3137678#3137678

              • 4. Re: How can I play live http streaming in osmf?
                Amit Kumar Adobe Employee

                No it didnt work. My live http stream does not plays with http://www.osmf.org/configurator/fmp here also I get same error "Error #1009: Cannot access a property or method of a null object reference." in debug player. Can you point me to any change in code or setting for playing live http as vod is working?

                • 5. Re: How can I play live http streaming in osmf?
                  Andrian Cucu Adobe Employee

                  Did you check "Are you using HTTP Streaming or Flash Access 2.0?" ?

                  • 6. Re: How can I play live http streaming in osmf?
                    Amit Kumar Adobe Employee

                    Hi Andrian,

                     

                    I am using HTTP live stream that is sure. Can you just tell me if we want to do anything with the OSMFPlayer code to play live http?

                     

                    Thanks,

                    Amit

                    • 7. Re: How can I play live http streaming in osmf?
                      Andrian Cucu Adobe Employee

                      Amit, if your asset worked in the Flash Media Playback configuration tool (after setting "Are you using HTTP Streaming or Flash Access 2.0?" config to "Yes") - then the same asset should simply work in OSMFPlayer if you properly compile both the player and the OSMF lib for 10.1.

                       

                      See the instructions for this in the link that Silviu provided.

                       

                      I don't see how we can help otherwise.

                       

                      -Andrian

                      • 8. Re: How can I play live http streaming in osmf?
                        rshin Level 3

                        If you are running OSMF Player from the source svn, find "Chrome library", and under application, there is ChromeApplication.as

                         

                        In the file, change the url setter as below if you want it specific to Live.  It should play Live Content though without change.

                         

                        public function set url(value:String):void

                        {

                           media = factory.createMediaElement(new StreamingURLResource(value, StreamType.LIVE_OR_RECORDED));

                        }

                         

                         

                        If that doesn't work, could post your f4m of your live streaming? If you can, make the url available to us? If you can't just post it as text file so that at least we can check on the format itself?

                        1 person found this helpful
                        • 9. Re: How can I play live http streaming in osmf?
                          Amit Kumar Adobe Employee

                          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

                          • 10. Re: How can I play live http streaming in osmf?
                            Will Law Level 1

                            HTTP streaming requires flash player 10.1, therefore you must change your compile option flag from

                             

                            CONFIG::FLASH_10_1 false

                             

                            To

                             

                            CONFIG::FLASH_10_1 true

                             

                            Cheers

                             

                            Will

                            • 11. Re: How can I play live http streaming in osmf?
                              MarioVieira.net Level 1

                              for live you need to add to the video element needs to take a StreamingURLResource, for VoD it would take a URLResource.

                               

                              I have a OSMF 1.5 player playing live streams (set isLive to true), as well as audio, swf, image slides

                              check it out at: http://blog.mariovieira.net/?p=176