Running Video from a sub directory 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

Running Video from a sub directory in Android

Post by cbarnhart » Wed Mar 20, 2013 5:22 pm

I have videos located in a sub directory I am trying to run. The player shows up but there is no video. Does anyone have any idea what I am doing wrong?
Here is my code -

Code: Select all

on mouseUp
   put  specialFolderPath("engine")&"/Video/Cab_Base_Level_mov" into docpath --local video
   mobileControlCreate "player"
   put the result into sPlayerId

   mobileControlSet sPlayerId, "visible", "true" 
   mobileControlSet sPlayerId, "rect", "0,0,550,413" 
   mobileControlSet sPlayerId, "showController", "true"
   mobileControlSet sPlayerId, "filename", docpath

   mobileControlDo sPlayerId, "play"
end mouseUp

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

Re: Running Video from a sub directory in Android

Post by Klaus » Wed Mar 20, 2013 5:27 pm

Maybe just a mispelled filename?
Cab_Base_Level_mov VS Cab_Base_Level.mov (with a DOT)

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

Re: Running Video from a sub directory in Android

Post by Klaus » Wed Mar 20, 2013 7:34 pm

On the other hand, are you sure that ANDROID can handle MOV (Apple QuickTime format!) video files?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Running Video from a sub directory in Android

Post by jacque » Thu Mar 21, 2013 12:16 am

Good point, Klaus. It's worse than that. Not all Android devices handle all types of video/audio formats. It varies by vendor.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: Running Video from a sub directory in Android

Post by cbarnhart » Thu Mar 21, 2013 12:30 am

Thank you all for your comments. let me load some files and see which formats work the best on the android system

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

Re: Running Video from a sub directory in Android

Post by Klaus » Thu Mar 21, 2013 11:00 am

I think that all mobile devices can handle MP4 video.

Post Reply