I decided to ask for help again with this problem because it is causing me to tear out what little hair I have left. The situation is as follows, and I stress that it happens the same way on three actual devices (two iPads and an iPod touch).
If I obtain a path to a music track with iPhonePickMedia “music”, and then pass that path to an iPhonePlaySoundOnChannel command, the music does not play. However, if I pass the same path to a simple Play command, it does work. That indicates that the path is valid. Also, if I pass the path to a music file in the Documents folder to the same iPhonePlaySoundOnChannel command it does play. That indicates that the iPhonePlaySoundOnChannel command does work.
So it seems that separately the iPhonePickMedia and iPhonePlaySoundOnChannel commands are working, but the latter will not play music on a path supplied by the former. Seems crazy to me ...
I made a simple stack with just three buttons that demonstrates the problem:
------
PickSong
global tSong
on mouseUp
iPhonePickMedia "music"
put the result into tSong
end mouseUp
-----
-----
PlayChannel
global tSong
on mouseUp
iPhonePlaySoundOnChannel tSong, "1", "now"
end mouseUp
------
-----
SimplePlay
global tSong
on mouseUp
play tSong
end mouseUp
------
I would be very grateful if someone could make a standalone of that simple stack above and confirm whether the PlayChannel button will play the selected song, and post the result. I know it should work and for my sanity I need to know if it does for other people. If so, I remain stumped.
TIA
Don
Pick - Play woes causing much grief
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Pick - Play woes causing much grief
Update from RunRev support:
"The files returned by the media picker are special iTunes links (in order to manage access to the library) and thus require a special method to play them back. So the Play command was modified specifically for this to work. iPhonePlaySoundOnChannel command will not wok with media picker, it has been documented wrongly. We have raised this bug in the quality center, you can follow it up here:
http://quality.runrev.com/show_bug.cgi?id=9987"
So I have been tearing my hair out over a bug. Damn ...
Don
"The files returned by the media picker are special iTunes links (in order to manage access to the library) and thus require a special method to play them back. So the Play command was modified specifically for this to work. iPhonePlaySoundOnChannel command will not wok with media picker, it has been documented wrongly. We have raised this bug in the quality center, you can follow it up here:
http://quality.runrev.com/show_bug.cgi?id=9987"
So I have been tearing my hair out over a bug. Damn ...
Don