mobileSoundOnChannel says "could not find channel"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
mobileSoundOnChannel says "could not find channel"
Can't seem to get the name of the audio file to return.
I have a sound playing on channel 1. When I invoke "answer mobileSoundOnChannel 1" I get "could not find channel."
I have also tried naming the channel....same result.
I have a sound playing on channel 1. When I invoke "answer mobileSoundOnChannel 1" I get "could not find channel."
I have also tried naming the channel....same result.
-
- VIP Livecode Opensource Backer
- Posts: 7229
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: mobileSoundOnChannel says "could not find channel"
It's a function, so you need parentheses:
get mobileSoundOnChannel(1)
get mobileSoundOnChannel(1)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: mobileSoundOnChannel says "could not find channel"
Thanks Jacque, I have tried that, with the same result.
-
- VIP Livecode Opensource Backer
- Posts: 7229
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: mobileSoundOnChannel says "could not find channel"
A couple of things to check: does a different version of LC work? If so, you may have found a bug unless the version that does work is newer. Also, are you using the simulator or a real phone? It might work differently in the simulator.
If neither of these yields any info then I'd submit a bug report.
If neither of these yields any info then I'd submit a bug report.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: mobileSoundOnChannel says "could not find channel"
You could try
Code: Select all
get mobileSoundOnChannel("current")
shiftLock happens
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: mobileSoundOnChannel says "could not find channel"
Bug report filed.
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: mobileSoundOnChannel says "could not find channel"
Bug confirmed.