Thank you for the many replies! I apologize for being so dense. I spent hours yesterday trying to get the video tutorial
Creating a Video Library Application to work with the recommended specialFolderPath("engine") statement in LC. Even after your kind explanations, I'm still not "getting" it.
I've created a standalone as Klaus recommended and copied my 06.mp4 video to it and tried to modify the original video tutorial found here:
http://lessons.livecode.com/m/754 (
Creating a Video Library Application). I think I'm not knowledgeable enough to use the statements correctly. This is rather an involved, though well explained, tutorial.
I'd like to figure out how to modify
Creating a Video Library Application to use the Android phone.
After feeling a large lack of success with the more complicated video tutorial, I then found a tutorial here
http://lessons.livecode.com/m/4069/l/29 ... -on-mobile (
How do I play a video in part of the screen on mobile). It is done for mobile (iOS). I thought it would be easier for me to understand the specialFolderPath("engine") statement in LC. I've read a lot of documentation (thank you for those links) and also searched the forum. This seems to be a puzzle point for many people. I can't get this to run on Android. I get a blank white screen. Is this tutorial ONLY for iOS? If so, how does one modify it for Android?
Code from the mobile tutorial:
Code: Select all
on openCard
// Check the control doesn't already exist. If so delete and recreate it
if "videoControl" is among the lines of mobileControls() then
controlDelete
end if
mobileControlCreate "player", "videoControl"
// Set the basic properties including visibility, rectangle and video file path
mobileControlSet "videoControl", "filename", specialFolderPath("engine") & "/06.mp4" //06.mp4 added to the standalone via copy
mobileControlSet "videoControl", "preserveAspect", true
mobileControlSet "videoControl", "showController", true
mobileControlSet "videoControl", "visible", true
mobileControlSet "videoControl", "rect", "5,5,300,400"
// Start playing the video
mobileControlDo "videoControl", "play"
end openCard
on closeCard
// Delete the control when we leave the card
controlDelete
end closeCard
on controlDelete
// Delete the control
mobileControlDelete "videoControl"
end controlDelete
Here is a screen shot of standalone copy settings:
Here is a screen shot of what it looks like on the device:
I'm also somewhat confused by the video widget that comes with LC. Can that be used with mobile? It doesn't seem to work for me.
Thanks again for all of your support. LC is kind of fun to work with, but I'm not really sure that I am up to the learning challenge.
-Rachel