MPMovieControllerをベースとしてカスタムMovieControllerを作成しています。私は、同じ機能([:NOアニメーション:のMoviePlayer setFullscreen YES];)を呼び出すMPMoviePlayerControllerがsetFullscreen = NOに応答しない
_[moviePlayer setFullscreen:YES animated:YES];_
を呼び出すことにより、フルスクリーンに映像を切り替えることができ、元の状態にムービープレーヤーを持参する(すなわちときユーザーが完了ボタンを押す)が機能しません。この結果として、機能:MPMoviePlayerDidExitFullscreenNotificationに耳を傾け、moviePlayBackDidFinishを呼び出す
A) - 代替として
は、私はまたにしようとしました。NSDictionary *thisDictionary = [NSDictionary dictionaryWithObject:[NSNumber numberWithInt:MPMovieFinishReasonUserExited] forKey:MPMoviePlayerPlaybackDidFinishReasonUserInfoKey];
[[NSNotificationCenter defaultCenter] postNotificationName:MPMoviePlayerDidExitFullscreenNotification object:moviePlayer userInfo:thisDictionary];
しかし、これらすべての例では、動画プレーヤーのビューが元の状態に付属していません - 機能、これを使用して「完了」
b)は内側から私のカスタム通知を掲示します。
助けてください。
ありがとうございます!