Page 1 of 1

player object on android

Posted: Tue Apr 07, 2020 7:18 pm
by paulalsmith1000
Evening everyone

Simple question again I'm sure, but there we go:

Could someone tell me how / if you can manipulate where the player object goes on the screen on an android device?

I can see how you change the size, but not the position. I was thinking I could put the code inside a container and then move that around as I liked.

Any help gratefully received,

Kind regards

Paul

Re: player object on android

Posted: Tue Apr 07, 2020 7:37 pm
by Klaus
Hi Paul,

there is no "player" object on the mobile platform, so what do you mean with "player"?
Do you use:

Code: Select all

...
play video "path/to/video.mp4"
...
Or

Code: Select all

...
mobilecontrolcreate "player","my_player"
...
?
I think only with "mobilecontrolcreate" you have full control about where the video will play.


Best

Klaus

Re: player object on android

Posted: Wed Apr 08, 2020 1:31 pm
by paulalsmith1000
Hi Klaus

Sorry, yes I meant mobilecontrolcreate.

It works well, but it doesn't seem possible to choose where to locate it on the card.

Kind regards

Paul

Re: player object on android

Posted: Wed Apr 08, 2020 1:52 pm
by Klaus
So something like:

Code: Select all

...
put 100,100,600,400 into tRect
mobilecontrolset "my_player", "rect", tRect
...
does not work as exspected?

Re: player object on android

Posted: Sun Apr 12, 2020 7:02 pm
by paulalsmith1000
Thanks v much Klaus