1
我的MPMoviePlayerViewController不启用搜索栏和快进按钮。它只显示 - : - ,就像它在流式传输时一样。我的代码如下所示:MPMoviePlayerViewController没有搜索栏
MPMoviePlayerViewController *player = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://REMOVED/listen.php?id=%@&token=%@", curid, token]]];
[[player moviePlayer] setRepeatMode:MPMovieRepeatModeNone];
[[player moviePlayer] setAllowsAirPlay:true];
[[player moviePlayer] ];
[[player moviePlayer] setMovieSourceType:MPMovieSourceTypeStreaming];
[self presentMoviePlayerViewControllerAnimated:player];
和文件头看起来是这样的:
Connection:keep-alive
Content-Length:4012742
Content-Transfer-Encoding:binary
Content-Type:audio/mpeg
Date:Fri, 01 Mar 2013 17:28:57 GMT
Server:nginx admin
X-Powered-By:PHP/5.4.12
为什么没有启用搜索栏?
完全删除了栏。 – Hedam 2013-03-01 18:27:08
你可以使用MPMoviePlayerController并添加它的子视图吗? – JMarsh 2013-03-01 18:30:19
问题不在于MPMoviePlayerController本身,因为显示了该栏。但国会议员不知道如何寻求。 – Hedam 2013-03-01 18:58:22