play series of wav clips

10 views
Skip to first unread message

Suranga

unread,
Nov 6, 2009, 4:03:19 AM11/6/09
to mobicents-public
Hi,

Could someone be kindenough to tel me how to play series of sound
records for one user input. I called sevral time my play method with
diferent URLs but it plays only one clip.

Ex-:

play("path1/test1.wav",link);
play("path2/test2.wav",link);

Sachin Parnami

unread,
Nov 6, 2009, 4:06:08 AM11/6/09
to mobicent...@googlegroups.com
pass second clip in
onAnnouncementCompleted(){
      play("path2/test2.wav",link);
}


So it will play after first gets finish.

On Fri, Nov 6, 2009 at 2:33 PM, Suranga <suranga...@gmail.com> wrote:

Hi,

Could someone be kindenough to tel me how to play series of sound
records for one user input. I called sevral time my play method with
diferent URLs but it plays only one clip.

Ex-:

play("path1/test1.wav",link);




--
Regards,
Sachin Parnami

Bartosz Baranowski

unread,
Nov 6, 2009, 4:13:14 AM11/6/09
to mobicent...@googlegroups.com
Which server version?
Its either IPBX api or MSC. YOu need to pass another signal once first compeltes. there is callback method for that.
--
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

Suranga

unread,
Nov 6, 2009, 4:28:49 AM11/6/09
to mobicents-public
Hi

Thanks for the quick reply , I'm using MSC , It's really appreciate
if you could how can I play series of clips (number of clips is
dynamical changed) .
I got to play several clips after setting Thread.sleep(10000) before
every clip, but I can measure the delay times for each clips. Kindly
assist me.

Many Thanks

On Nov 6, 3:13 pm, Bartosz Baranowski <baran...@gmail.com> wrote:
> Which server version?
> Its either IPBX api or MSC. YOu need to pass another signal once first
> compeltes. there is callback method for that.
>

Oleg Kulikov

unread,
Nov 6, 2009, 4:33:32 AM11/6/09
to mobicent...@googlegroups.com
Use announcement completed event 

2009/11/6 Suranga <suranga...@gmail.com>

Suranga

unread,
Nov 6, 2009, 4:42:12 AM11/6/09
to mobicents-public
Many Thanks for the reply ,

Is there any sample codes so that I can use. Because I'm very new to
Mobicents .

On Nov 6, 3:33 pm, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> Use announcement completed event
>
> 2009/11/6 Suranga <suranga.her...@gmail.com>

Oleg Kulikov

unread,
Nov 6, 2009, 4:44:10 AM11/6/09
to mobicent...@googlegroups.com
yes, see conference example. it restarts playback when announcement is completed. In your case you need to pass next file 

2009/11/6 Suranga <suranga...@gmail.com>
Reply all
Reply to author
Forward
0 new messages