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!
Pinch Zoom Issue
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Pinch Zoom Issue
Is anybody there? I still have a problem and would much appreciate any help with this issue. Thank you kindly.
Re: Pinch Zoom Issue
Hi sandy2,
Sorry that nobody got back to you on this.
Problem is you are in a whole new territory "pinch zoom a video"
I'm surprised it's even half working.
I haven't seen anyone posting on this before.
I'll tell you up front I don't know everything about mobile video and it is possible that there may be a way to get pinch zoom to work but because video is processor intensive I would suggest that you try a different approach.
Use only 2 options (maybe 3?) regular size and full screen. Stop the video during the resize and then start it again using mobileControlSet "startTIme" after recording "currentTime".
You may have to go as far as to delete the control and reset it's "rect" but really that just takes a blink-of-the-eye for the user.
Simon
Edit; I think just resize the "rect" and nothing else should be enough, no need to delete the control.
Sorry that nobody got back to you on this.
Problem is you are in a whole new territory "pinch zoom a video"

I haven't seen anyone posting on this before.
I'll tell you up front I don't know everything about mobile video and it is possible that there may be a way to get pinch zoom to work but because video is processor intensive I would suggest that you try a different approach.
Use only 2 options (maybe 3?) regular size and full screen. Stop the video during the resize and then start it again using mobileControlSet "startTIme" after recording "currentTime".
You may have to go as far as to delete the control and reset it's "rect" but really that just takes a blink-of-the-eye for the user.
Simon
Edit; I think just resize the "rect" and nothing else should be enough, no need to delete the control.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Pinch Zoom Issue
Thanks, Simon for the response.
Zooming in and out of the movie seems to work as expected when I use the diagonal arrows in the bottom right corner of the Quicktime player, then "Done" in the top left corner of the expanded movie. The issue occurs when I use the pinch zoom in and out--it seems like the default state is not restored so that other controls work as usual. This behavior is consistent in all 7 videos in the app. I guess I could state as a known issue not to use pinch zoom, but since this is an educational app, undoubtedly the problem would be found by some user! I just don't know if there is a command that would solve the problem...or perhaps if this a program bug...?
Zooming in and out of the movie seems to work as expected when I use the diagonal arrows in the bottom right corner of the Quicktime player, then "Done" in the top left corner of the expanded movie. The issue occurs when I use the pinch zoom in and out--it seems like the default state is not restored so that other controls work as usual. This behavior is consistent in all 7 videos in the app. I guess I could state as a known issue not to use pinch zoom, but since this is an educational app, undoubtedly the problem would be found by some user! I just don't know if there is a command that would solve the problem...or perhaps if this a program bug...?
Re: Pinch Zoom Issue
Hi sandy2,
You should not equate the QuickTIme player with the iOS video player.
I just tried pinch on the stock iOS video player and nothing happened, what they do give is an area of the screen to select different fullscreen modes. I don't think any user will get confused as even Apple doesn't offer it. Which means it's not a bug.
I'd just use touch to set a new rect.
Simon
You should not equate the QuickTIme player with the iOS video player.
I just tried pinch on the stock iOS video player and nothing happened, what they do give is an area of the screen to select different fullscreen modes. I don't think any user will get confused as even Apple doesn't offer it. Which means it's not a bug.
I'd just use touch to set a new rect.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!