Play sound and play stop
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Play sound and play stop
I'm using the play command to play a sound filled successfully on iOS, works great but issuing play stop does not stop playback.
Is there an easy way to stop playback of an MP3 on iOS?
Is there an easy way to stop playback of an MP3 on iOS?
Re: Play sound and play stop
Hi.
I have never played anything, but the dictionary does not list a "play stop" command. It does speak about a "stop" command:
I have never played anything, but the dictionary does not list a "play stop" command. It does speak about a "stop" command:
Craigstop [playing] {player | videoClip | audioClip}
Re: Play sound and play stop
Craig,
is one possible and official way to PLAY a file on iOS.
And "play stop" is the official way to stop this playback on iOS.
Look in the dictionary under "play".
No idea why it does not work as advertized? Maybe a bug?
What version are you using, Andy?
Best
Klaus
Code: Select all
play "path/to/file.mp3"
And "play stop" is the official way to stop this playback on iOS.
Look in the dictionary under "play".
No idea why it does not work as advertized? Maybe a bug?
What version are you using, Andy?
Best
Klaus
Re: Play sound and play stop
Hi,
Ive founf a solution, simply
play empty
stops the playback.
It would be great if there was a way to know if something is currently playing so I could swap the play button for a stop button and have that automatically flip back to a play button at the end of the playback but it looks like this is not possible yet on mobile devices.
Thanks for the help.
Ive founf a solution, simply
play empty
stops the playback.
It would be great if there was a way to know if something is currently playing so I could swap the play button for a stop button and have that automatically flip back to a play button at the end of the playback but it looks like this is not possible yet on mobile devices.
Thanks for the help.
Re: Play sound and play stop
Klaus.
Aha, "under play".
Craig
Aha, "under play".
Craig
Re: Play sound and play stop
This IS in fact possible, but not with the simple PLAY command.andyh1234 wrote: ↑Mon Nov 25, 2024 7:54 pmHi,
Ive founf a solution, simply
play empty
stops the playback.
It would be great if there was a way to know if something is currently playing so I could swap the play button for a stop button and have that automatically flip back to a play button at the end of the playback but it looks like this is not possible yet on mobile devices.
Thanks for the help.
Look up "mobileControlCreate" (player) and "mobilecontrolget()" in the dictionary.