Titanium audio player stops playing mp3 after a moment -
in titanium ios app i'm using ti sound player:
var mp3url = "http://www.noiseaddicts.com/samples/47.mp3"; var audioplayer = ti.media.createaudioplayer({ url: mp3url, allowbackground: true });
i borrowed boilerplate code , using unchanged, aside minor ui tweaks: http://docs.appcelerator.com/titanium/latest/#!/api/titanium.media.audioplayer
when click play button, begins play clip (i can hear it, , it's correct), automatically stops split-second later. can replicate 100% of time , happens. not double-clicking button or anything. quick single click.
my total source code (excluding of ui stuff) sound piece here: http://pastie.org/9624811
i using titanium sdk 3.4.0 ga, targeting iphone 4s (v. 8.0) xcode 6.0.1.
this gets logged in output:
[info] : state: starting (1) [info] : state: waiting_for_data (2) [info] : state: unknown (9) [info] : state: waiting_for_queue (3) [info] : state: stopping (6) [info] : state: stopped (7) [info] : state: initialized (0)
any ideas?
the audioplayer has problem playing specific mp3 file. found titanium ticket that's been open long time.
https://jira.appcelerator.org/browse/timob-4992
i tried sample mp3 site , worked perfectly:
http://www.stephaniequinn.com/samples.htm
titanium titanium-mobile appcelerator appcelerator-mobile
No comments:
Post a Comment