开发者

Titanium How to Play the Sound in Loud Speaker after Recording

开发者 https://www.devze.com 2023-03-14 03:32 出处:网络
I am using sound_record.js file from Appcelarator KitchenSink, But I am not getting how we can play the sound in Loud Speaker after Recording is Finishe开发者_如何学Cd.

I am using sound_record.js file from Appcelarator KitchenSink, But I am not getting how we can play the sound in Loud Speaker after Recording is Finishe开发者_如何学Cd.

I have used following code,

if (Titanium.Media.audioPlaying) {
    Titanium.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_AMBIENT;
}else{
    Titanium.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_PLAY_AND_RECORD;
}

But I am not able to play the recorded file in Loud Speaker.

0

精彩评论

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