player object on android

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulalsmith1000
Posts: 58
Joined: Sat Jun 15, 2019 10:09 am

player object on android

Post by paulalsmith1000 » Tue Apr 07, 2020 7:18 pm

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

Klaus
Posts: 13828
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: player object on android

Post by Klaus » Tue Apr 07, 2020 7:37 pm

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

paulalsmith1000
Posts: 58
Joined: Sat Jun 15, 2019 10:09 am

Re: player object on android

Post by paulalsmith1000 » Wed Apr 08, 2020 1:31 pm

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

Klaus
Posts: 13828
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: player object on android

Post by Klaus » Wed Apr 08, 2020 1:52 pm

So something like:

Code: Select all

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

paulalsmith1000
Posts: 58
Joined: Sat Jun 15, 2019 10:09 am

Re: player object on android

Post by paulalsmith1000 » Sun Apr 12, 2020 7:02 pm

Thanks v much Klaus

Post Reply

Return to “Android Deployment”