struggling with player

William Prothero prothero at earthednet.org
Mon Apr 27 19:25:31 EDT 2015


Richard:
I have it working in the simulator now, EXCEPT for the volume setting. The volume doesn’t have any effect.
So, I guess I should load it onto my iPad and see if it works?

      iPhoneSetSoundChannelVolume "background1",tVol

Bill
> On Apr 27, 2015, at 3:14 PM, Richard Gaskin <ambassador at fourthworld.com> wrote:
> 
> William Prothero wrote:
>> I’m going by the lesson at:
>> http://lessons.runrev.com/m/4069/l/12353-how-do-i-play-sounds-on-an-ios-device <http://lessons.runrev.com/m/4069/l/12353-how-do-i-play-sounds-on-an-ios-device>
>> to get sound files to play on the iPhone. However, I get no sound in the simulator. It finds the sound files (I test that the file exists), but no sound. And, the player doesn’t show any controls, even tho I have specified to show the controls.
>> 
>> Can I use the same play commands that I do in the development environment, or do I have to use the special mobile sound commands, like:
>> mobilePlaySoundOnChannel commands? I don’t see this in the lessons, so I’m asking.
>> 
>> So, I guess I’m asking if I have to use completely different commands when in mobile environment. The lesson doesn’t say it.
> 
> That lesson includes this note:
> 
>   Important: The iPhone simulator appears to have somewhat
>   buggy support for sound playback via AVAudioPlayer – it
>   will intermittently fail for no reason. Therefore, if
>   you are using the play command be sure to test your
>   application on a real device.
> 
> How does it work when you test on your phone?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list