Community Questions & Answers

Titanium.Media.createSound cannot find my file :(

OK, that's probably obvious, but I've spent last 5 hours and cannot find the answer. I want to display an image and play sound. I put image and mp3 file into the same directory. Creating a view with background image works fine: ~~~ var view1 =...

Crackling sound issue

Hi, in my iPhone app, I play a sound this way: ~~~ var player = Ti.Media.createSound({ url : "intro/pronunciation.mp3" }); player.play(); ~~~ The mp3 file is perfect, but when I play it in my app I get a strange crackling effect, something...

DTMF tone

Hi, I need to create a simple tone dtmf generator (encode/decode) for Android and iOS app. How can i do this with Titanium ?

createAudioPlayer to play local files

I am willing to know if I can use Titanium.Media.createAudioPlayer (instead of createSound) to play local (not remote) files. I have tried the following code and the iOS simulator gives the following alert: "File Error. Unable to configure network...

Cannot record the sound in KitchenSink

I want to record the sound or voice on my app and play this sound.I test the feature on the KichenSink but it can't be work. In the Ti SDK 2.0.2GA to 2.1.2GA with Xcode 4.5. The app will be crash when I turn on the record tab. In the Ti SDK 2.0.1GA2 and...

How to play a sound within a view

I need to play a sound file from inside a view. I can use "sound.play();" to play the sound in the window, but I need it to play from the view. I hope someone will be able to help with this. My code is below... ~~~ var imageView =...

Sound event listener.

Hi, is there any possibility to use an sound event listener to trigger something? For exemple, if I clap my hand or whistle I get an animation, I change my view to another one or slide my scroll view? The purpose is to interact with the device without...

changing sound needs a restart of app?

alright my other question died so here it comes again with the code in it. i have an options view where i select different sounds for my "player", however when i select a sound close the view and play it still plays the default sound but when i...

changing my sound

So i have this button that plays a sound everytime i click it, then i have another button that opens a view with different sounds assigned to their own button. when i click these other sound buttons im setting my main button to play the selected sound but...

How to use this module?

I am trying to use this module: https://github.com/hoyo/TiRemoteControl I cant find out ow to use it. ~~~ var Control = require('net.hoyohoyo.tiremotecontrol'); Control.setNowPlayingInfo({ artist: 'someone', title: 'Happy Birthday to You', ...

can't record sound and save to file

Hey all, I'm coding for a iPhone. This code used to work great. Now it doesn't. I have the latest updates and everything. Can anyone help me out? Titanium.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_PLAY_AND_RECORD; var myRec =...

How do you monitor mic level on Android?

Does anyone know how to monitor the mic level on Android (0.0 - 1.0) without the recording app popping up? It's simple on iPhone: `volLevel = Titanium.Media.peakMicrophonePower` But that doesn't work on Android. I tried this: ~~~ var...

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:...

Showing 1-50 of 257 1 2 3 4 5 6