views:

109

answers:

1

Hello,

I have modal view controller:

[ self presentModalViewController: some_controller_ animated: NO ];

In this controller i have UIWebView with player - <video> tag.

<video id="player" width="420" height="310" autoplay='true' controls> <source src='<TMPL_VAR NAME=VIDEO_URL>' type="video/mp4"/> </video>

It has native controls (play/pause, progress, fullscreen). After clicking fullscreen, our movie player enters fullscreen but modal is over movie player.

I tried to catch notification MPMoviePlayerWillEnterFullscreenNotification with sender nil. But perhaps HTML movie player doesn't send it.

I tried to find some JavaScript solution. But found only solution to write own controls, without fullscreen button, but I need it also.

Please Help

A: 

I have the same problem for the player shown with EMBED tag. Maybe you can catch some other notification, for example changing keywindow. But it's ugly soulution if anybody knows a better one please suggest. Thanks.

Igor Azarov
I checked following notifications: UIWindowDidBecomeVisibleNotification, UIWindowDidResignKeyNotification, UIWindowDidBecomeKeyNotification, MPMoviePlayerDidEnterFullscreenNotification, MPMoviePlayerWillEnterFullscreenNotification with sender nil, but it did not help me
Igor