停止并启动mpmovieplayercontroller
我做A
player.shouldAutoplay = YES;
[player setEndPlaybackTime:initPlay];
并且可以正常工作,然后
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
if ([touches count] == 1) {
[player play];
}
}
即使发生了触摸,并且发生play命令也无法正常工作,但是如果我尝试再次设置SetenDplayBacktime,则Stil不会播放?我只希望在用户触摸屏幕的任何想法之后继续播放吗?
I do a
player.shouldAutoplay = YES;
[player setEndPlaybackTime:initPlay];
and it works fine and then in
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
if ([touches count] == 1) {
[player play];
}
}
Even though the touch happens and the play command happens it does not work, but if I try and set the setEndPlaybackTime again it stil does not play? I just want it to keep play after the user touches the screen any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
难道视频必须倒带到开头吗?您是否尝试过:
请参阅 http://developer .apple.com/library/ios/#documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/Reference/Reference.html
值可能为 -1也工作。
Could it be that the video must rewind to the start? Have you tried:
See http://developer.apple.com/library/ios/#documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/Reference/Reference.html
A value of -1 may also work.