some mobilecontrolprops do not work on Android?
J. Landman Gay
jacque at hyperactivesw.com
Thu Oct 26 15:14:24 EDT 2023
The backgroundColor and alpha settings might be a dictionary error. The opaque setting says it
is available only for iOS.
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.
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--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list