2012-05-17 35 views
1

駁回呼籲後 -MPMoviePlayerViewController在鎖屏

[self.navigationController presentMoviePlayerViewControllerAnimated:movieViewController]; 

視圖屏幕鎖定或backgrounding後駁回本身。無論如何要防止這一點?

回答

2

看來,鎖定屏幕會導致MPMoviePlayerController停止,這將導致MPMoviePlayerViewController解僱。

我結束了滾動我自己的自定義UIViewControllerMPMoviePlayerController佔用全屏幕控制整個視圖。

0

這將是設備的自然行爲。 除非>>您爲其添加權限。

Info.plist > Required background modes

添加模式應用程序播放音頻或數據流通過AirPlay的

現在的差別是在MPMoviePlayerViewController不會解僱音頻/視頻,應用程序切換到後臺後還是一樣。但視頻會暫停。