Search code examples
androidvideo-streaminghttp-live-streaminggoogleio

Error playing HLS stream with Google Exoplayer on Android


Does the Google Exoplayer (https://github.com/google/ExoPlayer) support Http live streaming yet? Android supports it in general but when I try to play a .m3u8 HLS stream with Exoplayer on Android, I only get errors (see Log below). I used the minimal Exoplayer setup from Google IO (http://www.davekb.com/browse_programming_tips:android_minimal_exoplayer_use:txt)

Do I need to use different TrackRenderers than the MediaCodecVideoTrackRenderer and MediaCodecAudioTrackRenderer? If yes, which one?

Init 1.0.12
I/NuCachedSource2﹕ ERROR_END_OF_STREAM
D/WVMLogging﹕ Thu Aug 28 10:28:47 2014 (79a3a730):WVSession::SetError: status=1001,     desc=Invalid data format
E/WVMExtractorImpl﹕ WV_Setup returned status 1001 in WVMMediaSource::start

Solution

  • ==================================================================

    EDIT : dev-hls branch has been removed and I checked that master branch is good to go.

    ==================================================================

    You can use dev-hls branch of exoPlayer.
    It is still in development and not merged any part of it to master yet. But, It seems promising to me.

    dev-hls branch: https://github.com/google/ExoPlayer/tree/dev-hls