Search code examples
androidiosaudiotitaniumappcelerator-mobile

Titanium How to Play the Sound from nth second


I have the following code.

recording.start();
file = recording.stop();

sound = Titanium.Media.createSound({sound:file});

sound.play();

I need to play the recording from duration 15 seconds.

How do i do this?


Solution

  • Have you tried the method instead of the property?

    sound.setTime(15);