Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Check if audioPlayer is buffering in Android - Titanium Mobile (Ti SDK 3.2.0)

$
0
0

Hello Everyone,

I'm currently developing a titanium mobile application. I am working on an implementation of a radio stream using the Audio Player of Titanium. Is there any way to check if the audio player is buffering the stream? Sometimes it occurs.

I know from the following question on stackoverflow that the change event is not fired when buffering, also checked it myself and it doesn't (http://stackoverflow.com/questions/12847021/get-audioplayer-state-on-titanium-mobile-for-android

When I'm debugging on a real device it shows a warning though that indicates that the Android MediaPlayer is buffering:

  • [WARN] : MediaPlayer: info/warning (703, 343)
  • [WARN] : MediaPlayer: info/warning (701, 0)
  • [INFO] : MediaPlayer: Info (703,343)
  • [INFO] : MediaPlayer: Info (701,0)
  • [WARN] : MediaPlayer: info/warning (702, 0)
  • [INFO] : MediaPlayer: Info (702,0)

Is there any way to catch the 'buffering' event?

Yours sincerely, Patrick van Vuuren


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>