This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This is the main object and single global variable for the app. Glues the app together. | |
| * Included by app.js | |
| */ | |
| var api = {}; | |
| (function() { | |
| /** | |
| * The UI namespace for all UI components. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // load sound from remote url | |
| Ti.API.log(item.value.value1); // While the crash occurs, this contains 'http://stadtfestradio.argovia.ch/live' | |
| var streamer = Ti.Media.createAudioPlayer({url:item.value.value1, bufferSize: 4096}); | |
| var isPlaying = false; | |
| var container = Ti.UI.createView(api.combine($$.ContentChildView, {top:topMargin})); | |
| parent.add(container); | |
| var stack = Ti.UI.createView({ | |
| left: 65, | |
| layout: 'vertical', | |
| width:Ti.UI.SIZE, |