Page 1 of 1

Mobile Video - Android

Posted: Tue Jan 28, 2014 4:03 pm
by pTom
I am successfully playing video on both iPhone & Android. iPhone is working great (controls, fullscreen, etc).

However, Android is not. When I go to the video card, the video appears but the controls do not automatically appear. I have to touch the screen or swipe downwards below the video image for the controls to appear. Also, when the controls do appear they are lower than I want them to be (i.e. lower than what automatically happens in iPhone) and there is no full-screen option.

I am using the "mobileControl" commands to set everything up. The documentation does not identify how to create the full screen option for Android or how to manipulate the location of controls.

Ideas?

Thanks for your help!

Re: Mobile Video - Android

Posted: Wed Jan 29, 2014 11:10 am
by LCNeil
Hi Tom,

With a Native Mobile player you are limited in terms of where the Android OS positions the controller and what other options are available. The default Native Android player that is implemented in LiveCode, does not have the option of full screen mode or the option to move the position of the controller.

This is strictly an OS issue as LiveCode only hooks in to the native player that is available.

A workaround, for full screen on Android, would be to set the rect of the player to the rect of the device (or there abouts). This would cause the player to go into a "Full Screen" like mode. In terms of positioning the controller, this depends on the size of the player and is controlled by the OS. However, it might be an option to remove the controller and add your own playback controlls (e.g buttons with mobileControlDo commands)

I have attached a sample stack that shows an example of shrinking and expanding a player to full screen via script.

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode Next Generation
http://www.runrev.com/products/what-now
--