Android Stagefright NuPlayer for HTTP live

Android 3.x中將HTTP Live streaming的處理單獨出來一個NuPlayer,獨立於Stagefright這個框架。應該是針對Http Live的特點做了相關優化。Http Live streaming是未來流媒體發展的一個趨勢,這個我會緊跟。
TAG: 視頻直播  NuPlayer  
 

Android 3.x中將HTTP Live streaming的處理單獨出來一個NuPlayer,獨立於Stagefright這個框架。應該是針對Http Live的特點做了相關優化。

    Http Live streaming是未來流媒體發展的一個趨勢,這個我會緊跟。

    Android 2.x中Http Live視頻的體驗是遠遠比不了iPad的。不知3.x中是否將這塊兒獨立出來後有所改善。目前評測的幾款Android 3.x Pad在多媒體這塊兒都還做得很不夠,支持的格式不夠多,僅有的幾種格式還支持得不全。

    HTTP Live Streaming is separated from Stagefright on the recent release, which is basically another light-weighted playback engine, except it only supports the fixed container and codecs format currently.

    It seems that the author really prefers rewriting than refactoring:)

    Unlike Awesomeplayer, NuPlayer is built upon Stagefright's foundation classes, and leverages the Looper/Handlers mechanism to handle requests asynchronously by queuing them in a message loop, so there are less mutex/lock in place.

  • NuPlayer::Source is the parser module. Actually its interface looks like a combination of MediaExtractor and MediaSource, and it also makes seekTo as an explicit API now.
  • NuPlayer::Decoder connects to ACodec for AVC decoding, and to DecoderWrapper for AAC decoding, which in turn wrapps AAC software decoder in the OpenMAX style. ACodec is functionally similar as OMXCodec in Stagefright, besides the application of State pattern and passing MediaBuffers around with messages.
  • NuPlayer::Render is responsible for rendering audio and also controls when to post video buffers back to NativeWindow for A/V sync.

需要翻牆:

http://freepine.blogspot.com/2011/05/nuplayer-for-http-live-streaming.html

發佈了37 篇原創文章 · 獲贊 4 · 訪問量 28萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章