when will ipad simulator work with .mov files?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
petero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 59
Joined: Sat Jan 20, 2007 4:09 am

when will ipad simulator work with .mov files?

Post by petero » Mon Dec 06, 2010 7:56 pm

The project I am working on requires that two to four short .mov files (or whatever format they need to be in) be able to be shown in a small window on an iPad when a button is pressed.

I understand that this is difficult with RevMobile at present.

I was wondering if there were any projections as to when improved video playback capability might be available when using LiveCode to develop iPad apps (Weeks? Months? Years?)

Thanks in advance for any information, it will help determine my next steps with this project.

Peter

PS I tried implementing the code below suggested by member Klaus but was unable to get it working.


1. Import that videofile into a custom property of your stack like this
...
answer file "Where is the video file:"
set the cShortVideoClip of stack "xyz" to url("binfile:" & it)
## or ... of this stack
...
Now the binary video file is part of your stack but cannot be used so far, so you need to save it back to a
file when the app starts on the iPad.

2. "Spit it out" on the iDevice, if not already done:

on openstack
## or whenever
## Check if the video has alreday been saved on the iPad
if there is NOT a file (specialfolderpath("Documents") & "/ShortVideoClip.mp4")
then
put the the cShortVideoClip of this stack into url("binfile:" & specialfolderpath("Documents") & "/ShortVideoClip.mp4")
end if
...
end openstack

3. Now the video is ready for playback with
...
play (specialfolderpath("Documents") & "/ShortVideoClip.mp4")

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: when will ipad simulator work with .mov files?

Post by Klaus » Mon Dec 06, 2010 8:03 pm

Moved to iOS Development forum! Klaus

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: when will ipad simulator work with .mov files?

Post by Klaus » Mon Dec 06, 2010 8:06 pm

Hi Peter,

did you check, if the movie is really in the Documents folder?
...
set folder to specialfolderpath("Documents")
put the files into fld "check-o"
...

Did not work with video yet, so I can only guess.


Best

Klaus

Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Location: College Station, Texas
Contact:

Re: when will ipad simulator work with .mov files?

Post by Ron Zellner » Tue Dec 07, 2010 5:27 am

I can display a web-based graphic in an image in an app by specifying its source as a URL and it shows up fine in the iPad.
This doesn't seem to work with a movie player using a similar link to a web-based movie file.
Do we know the difference- is it an Apple iOS factor or a LiveCode matter?

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: when will ipad simulator work with .mov files?

Post by Klaus » Tue Dec 07, 2010 7:04 pm

Hi ROn,

according to the iOS Release Notes for LC 4.5.2 this should work, so it will be a Livecode matter.


Best

Klaus

Post Reply

Return to “iOS Deployment”