In my second card of my stack I have an image which when clicked should play video. In the simulator when the image is clicked only the audio plays not the video as well. Check out my code below....
Cheers,
Code: Select all
on MouseUp
// When user clicks on image it disappears
set the visible of image "new-video-splash-images.png" to false
// Check the control doesn't already exist. If so delete and recreate it
if "ioscontrol" is among the lines of iphoneControls() then
controlDelete
end if
iphoneControlCreate "player", "ioscontrol"
// Set the basic properties including visibility, rectangle and video file path
iphoneControlSet "ioscontrol", "filename", specialFolderPath("engine") & "/video/teil1-5.mov"
iphoneControlSet "ioscontrol", "preserveAspect", true
iphoneControlSet "ioscontrol", "showController", true
iphoneControlSet "ioscontrol", "visible", true
// Start playing the video
iphoneControlDo "ioscontrol", "play"
end MouseUp