Mobile Video - Android

Moderators: LCNeil, heatherlaine, kevinmiller, elanorb

Post Reply
pTom
Posts: 40
Joined: Wed Sep 18, 2013 10:44 pm

Mobile Video - Android

Post by pTom » Tue Jan 28, 2014 4:03 pm

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!

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Mobile Video - Android

Post by LCNeil » Wed Jan 29, 2014 11:10 am

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
--
Attachments
MobileVideoLesson.zip
(784.37 KiB) Downloaded 113 times

Post Reply

Return to “idea2app and Coding School”