Buffering issue with ExoPlayer on Android

See original GitHub issue

Current behavior

Sometimes when I do seek(), the video gets stuck and the onBuffering event says isBuffering is true. Then after about five minutes or so onBuffering says isBuffering is false, and the video resumes playing. This is with both mp4 files and mp3 audio files, but only when they are being played from an online location. When local files are played it does not occur.

I have tried with files from our own server and to test I also tried with this mp3: https://www.mfiles.co.uk/mp3-downloads/chopin-nocturne-op9-no2.mp3

In LogCat I see this message every time it occurs:

D/ReactExoplayerView: onStateChanged: playWhenReady=true, playbackState=buffering W/audio_hw_generic: Not supplying enough data to HAL, expected position 21225938 , only wrote 20695680

That last line I only see when the bug occurs, the first one is normal.

Reproduction steps

Call seek() repeatedly, i.e by sliding a progress bar back and forward.

Expected behavior

The video probably buffering for a moment,

Platform

Which player are you experiencing the problem on:

  • Android ExoPlayer

Occured on Android Nougat, Oreo and Pie, emulator and real devices.

Edit: Using latest release 3.2.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
dackmincommented, Oct 23, 2018

@cobarx when is 4.0.0 rolling out ? Wasn’t it already published and unpublished for a particular reason ?

1reaction
funkyfouriercommented, Jan 8, 2019

I have tried to reproduce it on both emulator and real device for several minutes without succeeding, so then it is probably safe to assume that it has been fixed.

Also, the bug did not occur nearly as often in the bundled release version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preloading and Buffering Videos in Android with ExoPlayer
Buffering occurs in video streaming when the software downloads a particular amount of data before beginning to play the video. While the next ......
Read more >
Sometime video buffering very slowly in exoplayer?
I don't know why, but sometimes Exoplayer buffers my video very slowly. My server is responding ...
Read more >
Understanding Exoplayer BUFFERING and READY state #7427
Can the player starts playing when it is in STATE_BUFFERING state and not in STATE_READY state but playWhenReady is true? I think this...
Read more >
How to get 4 times better re-buffering with drip-feeding ...
Because the ExoPlayer default Max Buffer is 50 seconds and the default Min Buffer is 15 seconds, the buffer will only start to...
Read more >
Part 2: Buffering Strategy to Lower Startup Time and Video On ...
Once the buffer level falls below minBufferMs of media data, ExoPlayer will start loading media data again until it has a buffer worth ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found