Pinch Zoom Issue
Posted: Mon May 19, 2014 5:50 pm
Hello,
As a new user, I have run into an issue I don't know how to solve. I built my app using all mouse messages and am deploying to desktop and mobile. I have successfully changed messages for audio and videoclips on mobile. Everything has worked in IOS except when a movie is pinch/zoomed to view as a full page. After zooming back to normal size, the app freezes. The movie can be controlled, but no other mouse messages work. It seems like the mouse (touch gesture) is not being released. If that is the case, how do I solve the problem? My code for the movie page is straight from a livecode lesson:
on openCard
// Check the control doesn't already exist. If so delete and recreate it
if "mobilecontrol" 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") & "/Media/introStaff1B.mp4"
mobileControlSet "videoControl", "preserveAspect", true
mobileControlSet "videoControl", "showController", true
mobileControlSet "videoControl", "visible", true
mobileControlSet "videoControl", "rect", "250,170,783,450"
// Start playing the video
mobileControlDo "videoControl", "play"
pass openCard
end openCard
on closeCard
// Delete the control when we leave the card
controlDelete
end closeCard
on controlDelete
// Delete the control
mobileControlDelete "videoControl"
end controlDelete
Thanks for any suggestions!
As a new user, I have run into an issue I don't know how to solve. I built my app using all mouse messages and am deploying to desktop and mobile. I have successfully changed messages for audio and videoclips on mobile. Everything has worked in IOS except when a movie is pinch/zoomed to view as a full page. After zooming back to normal size, the app freezes. The movie can be controlled, but no other mouse messages work. It seems like the mouse (touch gesture) is not being released. If that is the case, how do I solve the problem? My code for the movie page is straight from a livecode lesson:
on openCard
// Check the control doesn't already exist. If so delete and recreate it
if "mobilecontrol" 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") & "/Media/introStaff1B.mp4"
mobileControlSet "videoControl", "preserveAspect", true
mobileControlSet "videoControl", "showController", true
mobileControlSet "videoControl", "visible", true
mobileControlSet "videoControl", "rect", "250,170,783,450"
// Start playing the video
mobileControlDo "videoControl", "play"
pass openCard
end openCard
on closeCard
// Delete the control when we leave the card
controlDelete
end closeCard
on controlDelete
// Delete the control
mobileControlDelete "videoControl"
end controlDelete
Thanks for any suggestions!