I need help. I just try to create a player to listen online radios from a .pls file from a server. Only I need play and stop.
The app start playing the radio fine without problem, but when I try to stop or play again nothing happen.

I have two buttons that call "PauseRadio" and "PlayRadio".
Also if I try to trap the message that appear into the iOS documentation nothing happen...
What I'm missing?
I have this code:
Code: Select all
sPlayerID
on opencard
if the environment is "mobile" then
iphoneControlCreate "player"
put the result into sPlayerID
iphoneControlSet sPlayerID, "fileName", "http://www.rac1.org/audio/Player/nou_listen.pls"
iPhoneControlSet sPlayerID, "shouldAutoplay", "true"
iphoneControlDo sPlayerID, "prepareToPlay"
iphoneControlDo sPlayerID, "play"
end if
end opencard
on closeCard
if the environment is "mobile" then
iphoneControlDelete sPlayerID
end if
end closeCard
on PlayRadio
iphoneControlDo sPlayerID, "play"
end PlayRadio
on StopRadio
iphoneControlDo sPlayerID, "stop"
end StopRadio