Page 1 of 1

Running Video from a sub directory in Android

Posted: Wed Mar 20, 2013 5:22 pm
by cbarnhart
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

Re: Running Video from a sub directory in Android

Posted: Wed Mar 20, 2013 5:27 pm
by Klaus
Maybe just a mispelled filename?
Cab_Base_Level_mov VS Cab_Base_Level.mov (with a DOT)

Re: Running Video from a sub directory in Android

Posted: Wed Mar 20, 2013 7:34 pm
by Klaus
On the other hand, are you sure that ANDROID can handle MOV (Apple QuickTime format!) video files?

Re: Running Video from a sub directory in Android

Posted: Thu Mar 21, 2013 12:16 am
by jacque
Good point, Klaus. It's worse than that. Not all Android devices handle all types of video/audio formats. It varies by vendor.

Re: Running Video from a sub directory in Android

Posted: Thu Mar 21, 2013 12:30 am
by cbarnhart
Thank you all for your comments. let me load some files and see which formats work the best on the android system

Re: Running Video from a sub directory in Android

Posted: Thu Mar 21, 2013 11:00 am
by Klaus
I think that all mobile devices can handle MP4 video.