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")
when will ipad simulator work with .mov files?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: when will ipad simulator work with .mov files?
Moved to iOS Development forum! Klaus
Re: when will ipad simulator work with .mov files?
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
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
-
- Posts: 106
- Joined: Wed May 31, 2006 9:56 pm
- Location: College Station, Texas
- Contact:
Re: when will ipad simulator work with .mov files?
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?
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?
Re: when will ipad simulator work with .mov files?
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
according to the iOS Release Notes for LC 4.5.2 this should work, so it will be a Livecode matter.
Best
Klaus