Community Questions & Answers
Android intent + remote mp3
Hi all, I'm trying to play a remote mp3 file with Android intent. Here's my code.. I tried almost every possible option to open this remote mp3 file. 1. In some cases it's opened in a browser player 2. In some cases it shows "no mp3 apps" 3....
Increment MP3 Array on Click
I have an array of MP3s: ~~~ var wordSoundArray =...
ANDROID : Display cover photo from a mp3 file.
After making some finding, i found out that only IOS support the user to take items from a song file. Here's my question, if i insist to do this function, what should i need to do? Is there any modules support this function for android? Thanks.
createSound-Failed to play mp3 located in sd card
When i tried to play mp3 using createSound that is located in SD card, it failed to play and keep on displaying warning below: ~~~ (KrollRuntimeThread) [8046,8046] Issue while initializing : java.io.IOException: Prepare failed.:...
Record MP3 using Titanium.Media.AudioRecorder
What is the proper setting for the following properties if you want to record the audio in mp3 format? Snippet from sound_record.js in KitchenSink project. var recording = Ti.Media.createAudioRecorder(); recording.compression =...
Errors playing an .mp3 with Ti.Media.createAudioPlayer()
Hey everyone, I'm trying to use a very simple code snippet to play a streamed mp3 file from freesound.org: ~~~ var url = "http://media.freesound.org/data/21/previews/21409__greyseraphim__heart_beat_preview.mp3"; var player =...
Repeat sound ( mp3 )
Hi, can I somehow repeat sound over and over again without "complete" listener ? Is there any properties for that ? I used "looping" ,but sound play only once... ~~~ var player = Ti.Media.createSound({ url:...
I can some mp3 file , but I can't some mp3 files.
I cut a long mp3 file to 200 parts of mp3 files(1.mp3 ~ 200.mp3). I want one of mp3 file to play in random. so I've wrote script like this ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ var n = Math.floor(Math.random() * 200) + 1; var s =...
createSound, on complete jump to next sound
I'm creating a music player. But since all the audio files are running within the application I can't use the createAudioPlayer function. So what i've done is create a variable which holds the player.. BUT when the sound is finished i need to assign a new...
Audio Streaming Play takes 15+ seconds on Android
Hey guys Looking at things in the Kitchen Sink with the sound_remote.js example. When using our MP3 stream (64k bit rate) it takes almost 20 seconds for the audio to start playing once you press the start button. Likewise... it is taking 20 seconds or so...
Titanium Android: CreateSound Does not work
The following code works fine in iPhone. I have tried rebuilding my build folder, using `app://` and `app://Resources` and relative and directive paths - every path combination possible. The funny thing is; it works using a URL but not when not using a...
suppress speakers during music playback
does anybody know how to suppress speakers during a musicplayer playback? I only want sound through the receiver.
Remote .MP3 and .OGG files not playing, locally they work fine
I am trying to using the sound object on Android to play mp3 (or ogg) files. If the files exist locally, I play the local files otherwise I want to play the remote file. The local file works fine. The remote file doesn't Here is some sample...
Android: recording of internet radio
Hi, is it possible to record mp3-stream via http client? The property 'file' is not available on android … Rainer
Multi MP3 files, but only plays the 1st file, not the rest....
Hi, I have 5 mp3 files, and need to play them one after another in one click. But the code only plays the 1st mp3 but not the rest. Please see the code below...Thank you for your help. ~~~ var win_main = Titanium.UI.currentWindow; var x =...
File exists or not?
Hi there, i have changed the function like below because app was waiting to much to open everytime. With this code: 1. i am checking the file if exists or not, if doesn't exists i am downloading it to the Application Directory and play...
Mp3 Cache
Hello, is there a way to cache my playing mp3's? and make the player play from local if the mp3 file exists?
Push Data to Array?
Hello, i can't push data to my songs array, i don't understand why? and extra question, i can play the songs with a loop, if songs length finished , it turns to the begininng, i have done a next button but if it is the last song i must to click next...
Go To Next Song?
Hello, i have found this question in Q&A, but this isn't go to next song? i have tried everything, but can't make it:( ~~~ var win = Ti.UI.currentWindow; var mp3_array = []; ...
Android issues: mp3 stream createAudioPlayer
Ti SDK 1.3.0 Android 2.1 update Audio issue: Audio does not update url. Loading a mp3 to stream using createAudioPlayer. using setUrl() or prop url should change the audio stream. The url shows a change but initial audio still loads and plays. ~~~ //......
html5 audio not working or Titanium.media.createSound
I've recently made an html5 game engine and wanted to test it in Titanium. It runs wonderful, a medium sized demo I had just pasted in runs near flawless. Near. Everything works perfectly except for one small thing. The html5 audio doesn't work. Is there...
Does Sound object uncompress mp3 file each time play is called?
I know that mp3 files are not the preferred format for the iphone but for space reasons, I have chosen to use a mp3 file instead of some uncompressed data format. My question is this: if I create a Ti.Media.Sound object and keep calling Play on that same...
Android webview - standard HTML links do not open
Hi, I have a very basic webview which loads an external webpage. The external webpage is valid compliant HTML. ~~~ var webview = Titanium.UI.createWebView({url:'http://anywebsite.com'}); var window =...
Continious Play
Hi there, i can play the mp3's with this but i how can i make this continious, i must to press one by one to play, Thanks ~~~ table.addEventListener("click", function(e) { sound.stop(); showIndicator(); var mp3Adress =...
audioPlayer on 1.8.2 progress not updating past a certain point
When I'm streaming a 5-second long mp3, it seems the progress will stop at 2.218 seconds. If it's an 11-second long mp3, the progress only goes up to 7.521 seconds. And for 18-second long mp3, it goes up to 14.599. The mp3s will play all the way...
AudioPlayer progress broken in 1.8.0?
Hello all, Im developing an app which makes it possible to listen to music from a server. Titanium SDK 1.8.0, iPhone 5.0 Anyhow, I've created the audioplayer as said in the documentation: ~~~ var Player = Ti.Media.createAudioPlayer({ allowBackground:...
playing multiple looping sounds in sync, what's the best practice?
I am trying to have 5 multiple MP3's that you can toggle playing on and off.. They are a loop and should essentially "sync". Below is the example of what we are doing, with code redacted ~~~ loops[0] = Titanium.Media.createSound({ url:...
How to prevent from audio files to appear in music gallery when saving to externalStorageDirectory on android
I'm saving audio files to externalStorageDirectory but the files appears in music gallery, how can i prevent from this to happen!?
[Android] Streaming remote mp3 leads to 0x1 Exception?
Dear all, I've implemented a small audio streaming solution which fetches remote mp3 files onClick of a play-Button using the Ti.Media.createAudioPlayer. This works like charm on iOS but on Android it _always_ crashes: [Error...
Media player project
Dear all, I try to create media player project (like Google Music) I have some problem: 1. How to do something (eg. change tab, select songs.. ) while mp3 playing 2. How to play while download Please give me solutions Thanks
Android mp3 streaming from shortened URL is not working
I've discovered a disconcerting issue with streaming mp3 audio streams to Android devices when using a shortened URL. The server basically performs a 301 redirect to the mp3 stream path, since the stream URL is subject to change, depending on stream...
mp3 streaming - Sound, musicPlayer or audioPlayer ?
Hi ! I 'd like to do a streaming mp3 player in my android/iphone app, what is better : a sound, musicPlayer or audioPlayer instance ? I know audioPlayer can easily stream but there are no controls like audioPlayer or sound. Advices ? Thank you
Mediaplayer Seek
Hi there, does anyone has the solution or a workaround to ename seek function for player mp3 ? thank again Andrea
Cannot play mp3 file from remote url [iPhone]
Greeting All, I would like to know about regarding to play mp3 file from server. Actually, I already saw example coding from KS. Like this: ~~~ var url = "http://www.nch.com.au/acm/8kmp38.wav"; var sound =...
Mp3 player TableView
Hi there, i want do make a mp3 player with CreateSound but i can't do it?here is my code http://www.pastie.org/2181914 where is my mistake? thanks,
Is it possible to play a streaming mp3 from a webserver with the MusicPlayer.
Hello, I saw an example at KitchenSink which loads mp3 from the directory, sound_file_url.js var file = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'cricket.wav'); // load from file object but use the nativepath var sound =...
Android: obtainBuffer timed out (is the CPU pegged?) Kitchen Sink RSS.js example.
RSS feed loads fine but when I click the feed item to play the mp3 (stream) it doesn't do anything and just gives "W/AudioTrack( 31): obtainBuffer timed out (is the CPU pegged?) 0x58a08 user=00004400, server=00001400" over and over in the...
Is it possible to download mp3's to the media device with appcelerator app?
Is it possible to download mp3's to the media device with appcelerator app? Does anyone know. I know you can play media, but not seen anywhere where you can download the media to your phone/ipad
cross-platform ringtone replacer
Hello, Is there a way to access the ringtones on iOS, Android, WebOS? The mobile phone user should be able to download a MP3-file and install it as default ringtone on his mobile phone. I am new to mobile development, and searched for an answer for a...
Audio file format (wav mp3 ogg caf ...)
Which is the preferred audio file format (.mp3 .wav .ogg .caf) in terms of proccessor resources and memory for playing a local sound ( Ti.Media.Sound) for the iPhone/iPad (Titanium mobile SDK)?
Android : aac song file from url is not playing
I am currently working on a music player application where i play songs from url. I couldn't play the aac format files from the url where the same player is playing mp3 format file . Kindly help me out on this issue .
Which audioplayer for streaming mp3 on demand
Hi, I want to play an on demand mp3 stream, so no live streams. I also need to be able to jump to a time position in the audio and play from there, but progressive download is no option while the audio files could be large. I need an implementation for...
Audio streaming and meta datas??? Title??? URGENT
Hi, is it possible to get the meta data of an audio stream? Title, artist? There is nothing in the docs! Thanks Marc
AudioPlayer mp3 stream receiving the currently playing title data
Hi all, Is there a way to know what is currently being played on a Shoutcast based mp3 stream using the Titanium.Media.AudioPlayer ? If not, could it be added in the future? Here's some information about getting the currently playing title...
Is it actually possible to record any format besides a WAVE?
The code I'm using below to record WAVE's works just fine - straight from the Kitchen Sink. When I switch it to MP3 or AIFF my app either crashes(MP3) or just does nothing(AIFF). Does each format use a specific audio format? Not sure what's going...
Broadcast live mp3 songs from mobile device
Hello, Is there a way to stream songs from the mp3 library on the phone THNX
preload mp3 sound
Hi, Here's my code ~~~ var myMonkeySound = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'sounds/mimiplay_monkey.mp3'); // load from file object var soundMonkey =...
Playing an MP3 stream on Android
Is it possible to play an MP3 audio stream (ShoutCast) on Android using Titanium? The kitchen sink test seems to use an OGG stream and changing it to an MP3 stream fails to work. What can I do to play an MP3 stream or is this feature coming soon?
Playing delay different between iPhone and iPod
Hello, can someone help me with this problem? There is a difference between playing an mp3 file on an iPhone than on an iPod. I have a button that plays a sound when it is pushed. On the iPod the sound plays instantly, but on the iPhone it takes almost 1...
Showing 1-50 of 50