Animations in Android

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cbarnhart
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 48
Joined: Mon May 07, 2012 2:10 pm

Animations in Android

Post by cbarnhart » Sat Jun 02, 2012 12:29 am

has anyone had any luck running animations on a card in the Android environment? If so what format (qt, avi, ....) and did you use the media player object?

if you have can you run me through how you set it up?

Thank you

cbarnhart
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 48
Joined: Mon May 07, 2012 2:10 pm

Re: Animations in Android

Post by cbarnhart » Wed Jun 06, 2012 1:08 pm

I feel foolish. I just re-read the Android Deployment release notes and I found that videoclips/players are not yet supported. Ouch, this is a big one for me. I hope it comes out on the next release

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Animations in Android

Post by Klaus » Wed Jun 06, 2012 1:12 pm

Hi cbarnhart,

this is supported in LiveCode 5.5!

From the Android relase notes:
...................................................
Video playback support
Basic support for playing videos has been added using a variant of the play command. A video file can be played by using:
play ( video-file | video-url )
The video will be played fullscreen, and the command will not return until it is complete, or the user dismisses it.
If a path is specified it will be interpreted as a local file. If a url is specified, then it must be either an 'http', or 'https' url.
In this case, the content will be streamed.
The playback uses Android's built-in video playback support and as such can use any video files supported by the device.
Appearance of the controller is tied to the showController of the templatePlayer. Changing this property to true or false,
will cause the controller to either be shown, or hidden.
When a movie is played without controller, any touch on the screen will result in a movieTouched message being sent to
the object's whose script started the video. The principal purpose of this message is allow the play stop command to be used
to stop the movie. e.g.
on movieTouched
play stop
end movieTouched
Note: The movieTouched message is not sent if the video is played with showController set to true.
Playing a video can be made to loop by setting the looping of the templatePlayer to true before executing the play video command.
.....................................................
Time to upgrade? 8)


Best

Klaus

Nick Johnson
Posts: 16
Joined: Fri Jun 29, 2012 8:05 am

Re: Animations in Android

Post by Nick Johnson » Mon Jul 09, 2012 6:58 am

Live code 5.5

It should provide the support......

Post Reply