some mobilecontrolprops do not work on Android?
Klaus major-k
klaus at major-k.de
Fri Oct 27 09:19:21 EDT 2023
Hi Jacque,
> Am 26.10.2023 um 21:14 schrieb J. Landman Gay via use-livecode <use-livecode at lists.runrev.com>:
>
> The backgroundColor and alpha settings might be a dictionary error.
OK, will report that.
> The opaque setting says it is available only for iOS.
Yes, my fault.
> I think the appearance of mobile players is set directly by the OS now, so the color and transparency may not be available on Android.
That's what i guessed.
Thanks!
> On 10/26/23 9:56 AM, Klaus major-k via use-livecode wrote:
>> Hi friends,
>> I (now successfully :) create a player for MP3 playback,
>> however some properties do not seem to work on Android,
>> although the Dictionary states otherwise!?
>> ----------------------------------------------
>> mobilecontrolCreate "player", "mplayer"
>> mobileControlSet "mplayer", "visible", TRUE
>> mobileControlSet "mplayer", "rect", (the rect of grc "player")
>> ## Does nothing:
>> mobileControlSet "mplayer", "backgroundcolor", "213,143,116"
>> mobileControlSet "mplayer", "showController", TRUE
>> mobileControlSet "mplayer", "filename", tURL
>> ## Whatever I set here, on Android I always get a black rect with
>> ## the player controls inside of it.
>> mobileControlSet "mplayer", "opaque", FALSE
>> ## Whatever value I enter here, nothing will change the apprearance
>> mobileControlSet "mplayer", "alpha", 127
>> ----------------------------------------------
>> Before I report this, is this a dictionary bug or what?
>> Or is it just me again? :-D
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list