开发者

Titanium How to Play the Sound from nth second

开发者 https://www.devze.com 2023-03-14 16:49 出处:网络
I have the following code. recording.start(); file = recording.stop(); sound = Titanium.Media.createSound({sound:file});

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 1开发者_如何学运维5 seconds.

How do i do this?


Have you tried the method instead of the property?

sound.setTime(15);
0

精彩评论

暂无评论...
验证码 换一张
取 消