when will ipad simulator work with .mov files?
Posted: 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")
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")