Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Buffer AudioPlayer

Can I start downloading Audio from a URL and buffer it to the iPhone before I start playing it?

— asked April 9th 2010 by Charlie Irish
  • audio
  • audioplayer
  • buffer
  • iphone
  • play
  • sound
  • xhr
0 Comments

2 Answers

  • You could try using sound = Titanium.Media.createSound({url:the_audio_url,preload:true});

    Then it should be ready when you sound.play() it.

    — answered April 9th 2010 by Kosso
    permalink
    0 Comments
  • Kosso - how about this:
    It says in the docs:
    The Sound object loads the entire media resource in memory before playing.
    As the resource is from a URL, I'd like to stream it but wait until the user has pressed play before it starts playing.

    Can I use the preload:true for Titanium.Media.AudioPlayer ?

    — answered April 10th 2010 by Charlie Irish
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.