Page 1 of 1
mobileStopPlayingOnChannel don't work!!!!
Posted: Sun Dec 22, 2013 6:34 pm
by Fasasoftware
Hi to all...i'm trying simply to play a sound looping and then i want to stop it.....but without success!!!! can you help me????
this code work fine.......
Code: Select all
put (specialFolderPath("engine") & "/seffects/Crazyshot.mp3") into tPath
put "Crazyshot" into tChannelName
put "looping" into tType
mobilePlaySoundOnChannel tPath, tChannelName, tType
This code below don't work!!!....can you help please???
Code: Select all
mobileStopPlayingOnChannel "Crazyshot"
Best regards,
Lestroso
http://www.fasasoftware.com
Re: mobileStopPlayingOnChannel don't work!!!!
Posted: Sat Jan 18, 2014 12:55 pm
by vedus
here is the trick
and here is a link for the tutorial
http://lessons.runrev.com/s/lessons/m/4 ... ng-players
and for the mobile is look for the "mobileControlDo" in the dictionary
Re: mobileStopPlayingOnChannel don't work!!!!
Posted: Sat Jan 18, 2014 1:37 pm
by Klaus
Hi all,
the tutorial is for using a player object on DESKTOP machines!
On the mobile platform things work a bit different, so a simple
"stop player XYZ" will not work here
But this should work in fact:
...
mobileStopPlayingOnChannel "Crazyshot"
...
Sorry, no idea what's going on there.
Maybe you could simply KILL the player:
...
mobileDeleteSoundChannel "Crazyshot"
...
and see if that works?
Best
Klaus
Re: mobileStopPlayingOnChannel don't work!!!!
Posted: Sat Jan 18, 2014 5:46 pm
by Dixie
mobielPlaySoundOnChannel '
does' work... Using LC 6.5.1
two buttons :-
button 'Play"
Code: Select all
on mouseUp
put specialfolderpath("engine") into thePartialPath
put thePartialPath & "/dontgo.aif" into theSoundName
mobilePlaySoundOnChannel theSoundName, 1, "looping"
end mouseUp
button 'Stop'
Code: Select all
on mouseUp
mobileStopPlayingOnChannel 1
end mouseUp
Please, think a little before using subject titles, as you have 'mobileStopPlayingOnChannel don't work !!!!'... No need for the exclamation marks.