Zooming a Movie

I have a screen with a table of time links into a movie that is shown on the right side using a AVPlayerViewController in a container view. I also place a view behind the containerView to remember it's original position. Changing the table row fucus jumps the movie to the selected time. Clicking the table zooms (animates) the movie's container view to full screen, covering everything else. That sort of works. However, the moview immediately goes to full-screen. Not visually appealing, but end result is correct.


I then attempt to zoom back by using the menu button. I intercept the menu began/ended to zoom back. That sort of works, but not correctly. Again, the movie immediately goes to original size and the container view animates back. Unfortunately, this either resets the table focue to the first row, setting the movie to the beginning and stops playing, or (sometimes), even worse, returns to the previous scrren. Obviously, not what I want. I just want the movie to zoom back to the original position, specified by the empty view I placed there. Any advice on how to make this process behave?

Well, there's more than one way to skin a cat. I gave up on the above approach and went to a full-screen movie with a semi-transparent view overlay for the link table. Had to fight with the focus a little, but it works. I bring up the overlay with a long press gesture recognizer. That was somewhat problematic because that gesture recognizer trips an action on both press began and ended. Anyway, it all works now and does what I needed.

Looks like I lied. The link table works just fine when the movie is playing, But Apple, Inc. changed something here that appears to have screwed it up royally. Someone decided that the movie can only be shuttled in pause mode. I don't have an argument with that, but I do vehemently object to it always showing the controls when being paused.


Worse yet, the shuttle control completely rules. When my table selection triggers a seekTo when paused, the movie goes to the indicated time and displays the correct image at that time point. However, when the movie is then played (rate = 1.0), it jumps to whatever time the shuttle was last showing -- Definitely not what is desired. Unless I'm missing something, this is a serious bug that needs to be fixed pronto.


I woud prefer that the shuttle not appear unless a swipe brings it up. Even then, it should follow, not override, current movie time unless the user moves it.

25386081 AVPlayerViewController -- Shuttle supplants seekTo


Another issue I mentioned in the above that should probably be a separate bug report, is that UILongPressGestureRecognizer works on the simulator, but not on the device. That is what we are using to toggle hide/unhide for the overlay link table. So we have not been able to verify the original problem on the device itself.

Zooming a Movie
 
 
Q