Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Audio file end
Started by chandu25 Feb 24 2010 12:33 PM

- - - - -
3 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

chandu25

[GLOBAL: userInfoPane.html]
chandu25
  • Observer

  • 3 posts
  • Guests

Hello

media.playSound("test.mp3") i would like to send an alert after the music file has completed playing.

Thanks
Sharath
uid: 5365 topic_id: 548 reply_id: 300548


[TOPIC: post.html]
#2

carlos m. icaza

[GLOBAL: userInfoPane.html]
carlos m. icaza
  • Corona Geek

  • 2,992 posts
  • Alumni

in the queue for 1.2 update

also thinking of .playSound(foo,function,true)

---

1st parameter foo
2nd parameter some function you would like to execute after sound ends playing
3rd parameter true/false - loop

c
uid: 24 topic_id: 548 reply_id: 1073


[TOPIC: post.html]
#3

chandu25

[GLOBAL: userInfoPane.html]
chandu25
  • Observer

  • 3 posts
  • Guests

Carlos

Is there a way around...I need this badly...i need to capture end of an audio file and fire another audio. If not is there a way to count how many minutes the file is . please help me

Thanks
S
uid: 5365 topic_id: 548 reply_id: 1078


[TOPIC: post.html]
#4

afyzendo

[GLOBAL: userInfoPane.html]
afyzendo
  • Observer

  • 25 posts
  • Guests

You could use a timer that triggers after the audio is finished it. Start it immediately when you start playing the sound and give it the time span of the audio file.
uid: 4824 topic_id: 548 reply_id: 1082



[topic_controls]
[/topic_controls]