Skip navigation
Currently Being Moderated

How can I get netstream object which httpstreaming uses?

Dec 9, 2010 3:58 AM

Hi,

 

I want to hook into the OSMF framework and get the netstream object and later get all the netstream status messages like NetStream.Play.Start, NetStream.Seek.Notify etc. I have done this for rtmp streaming using netloader package and passing TracingNetLoader as second argument in the video element used in it and then wiriting this class by extending it with RTMPDynamicStreamingNetLoader.

So can similar thing be done for http streaming also as I can see HTTPStreamingNetLoader class also but the problem is that we have to use MediaElement and not VideoElement and mediaElement only allow one parameter while instantiating it.

 

Regards,

Amit

 
Replies
  • Currently Being Moderated
    Dec 9, 2010 10:16 AM   in reply to Amit Kumar

    You should be able to take the same approach for HTTP streaming (i.e. subclass HTTPStreamingNetLoader, override createNetStream, call super.createNetStream, and then add your listeners to the NetStream you get from the base class).

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 9, 2010 11:46 AM   in reply to Amit Kumar

    You don't use MediaElement for HTTP streamed content, you use VideoElement.  (Technically, you use F4MElement, which will generate the VideoElement using a MediaFactory.  So you would need to modify the MediaFactory (DefaultMediaFactory) to use your extended HTTPStreamingNetLoader instead of the default.)

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 9, 2010 11:48 AM   in reply to Amit Kumar

    You should start with register your own media info item in the media factory such as DefaultMediaFactory, where you can see how the HttpStreamingNetLoader gets used. And then replace it with your own net loader.

     

     

    --Wei Zhang

    Senior Computer Scientist

    Adobe Systems, Inc.

    weizhang@adobe.com

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points