When will Video Player support on Android

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Jedt3D
Posts: 6
Joined: Sun Dec 16, 2007 3:53 pm

When will Video Player support on Android

Post by Jedt3D » Mon Oct 29, 2012 6:03 am

I've just read the LiveCode Android 5.5.3 release note.

On the section "What doesn't work"
• videoclips/player functionality (planned for a future release)

But here on the page 36...

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:

Code: Select all

play ( video-file | video-url )
The video will......blah blah

Then I've tried this on a button and deploy to an android phone. Not work..

( can't post the URL due to permission )

Code: Select all

on mouseUp
  play "http___www_wowza_com/_h264/BigBuckBunny_115k.mov"
end mouseUp
So, this 5.5.3 can Play Video on Android or NOT ?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: When will Video Player support on Android

Post by Simon » Mon Oct 29, 2012 1:18 pm

I can play video's on my Android, not sure if this includes online videos.

Code: Select all

  put "mnt/sdcard/Movies/my_vid.mp4" into docpath --local video
   mobileControlCreate "player"
   put the result into sPlayerId

   mobileControlSet sPlayerId, "visible", "true" 
   mobileControlSet sPlayerId, "rect", "0,0,320,460" -- maybe screenRect?
   mobileControlSet sPlayerId, "showController", "true"
   mobileControlSet sPlayerId, "filename", docpath

   mobileControlDo sPlayerId, "play"
That works.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Jedt3D
Posts: 6
Joined: Sun Dec 16, 2007 3:53 pm

Re: When will Video Player support on Android

Post by Jedt3D » Mon Oct 29, 2012 1:30 pm

Thank you very much. I am going to test it asap.

Jedt3D
Posts: 6
Joined: Sun Dec 16, 2007 3:53 pm

Re: When will Video Player support on Android

Post by Jedt3D » Mon Oct 29, 2012 7:10 pm

Simon, thank you very much!
It's working properly on my device.
I just put all you code into on openCard event of the main stack. That's all.

Time to study mobileControl now.. :)

What's still left to test is play from URL and embeded video.

maulinarmananda
Posts: 14
Joined: Thu Mar 24, 2016 12:13 pm

Re: When will Video Player support on Android

Post by maulinarmananda » Thu Mar 24, 2016 12:43 pm

can you give me the example?
I have tried before but still doesnt work :(

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

Re: When will Video Player support on Android

Post by Klaus » Thu Mar 24, 2016 2:43 pm

Hi maulinarmananda,
maulinarmananda wrote:can you give me the example?
I have tried before but still doesnt work :(
an example for what exactly?
There are some examples here on this page.
Did you check the dictionary for "mobilecontrolxxx"?

Maybe it is a good idea to NOT revive a 4 year old thread and start a new one. 8)


Best

Klaus

maulinarmananda
Posts: 14
Joined: Thu Mar 24, 2016 12:13 pm

Re: When will Video Player support on Android

Post by maulinarmananda » Thu Mar 24, 2016 4:03 pm

sorry, because this is my first time in this forum so I don't know how to throw up new question ;)

my problem is, I want to build android app using livecode. everything is going well but my video on my app doesn't works.
video doesn't come up, so I can't play it. I put code in card where my player in. Is the problem is on my code or on my video format?

Post Reply