1

I'm having major issues with the media player. I have come across this question on SO Android Mediaplayer OnInfo and OnError not called on older Devices however, this does not address my issue.

Android VideoView MediaPlayer OnInfoListener - events not fired

MediaPlayer.OnInfoListener is called on my newer devices (Samsung Galaxy S4, Sony Xperia Z3, Nexus 5), so I'm not sure why this isn't being called on the older devices (samsung s3 mini). In the 2nd linked post it says that its a HLS error, however I'm unsure how this is the case, is this something that has been fixed in the OS?

I need to be able to dismiss the progress dialog and doing it in the onPrepared method is too early as the video isn't ready to start.

Also if the video lags, I need to display a progress dialog and the only way of getting the info is via the onInfoListener.

Is there any way around this???

Community
  • 1
  • 1
DJ-DOO
  • 4,545
  • 15
  • 58
  • 98

1 Answers1

1

Its a known bug, please check here, https://code.google.com/p/android/issues/detail?id=42767

and there is accepted answer of the same question, OnInfoListener is never called

hope this will help you.

Community
  • 1
  • 1
Silvans Solanki
  • 1,267
  • 1
  • 14
  • 27