我写了这样的代码
NSString *path = [[NSBundle mainBundle] pathForResource:@"iOS app development " ofType:@"mp4"];
NSLog(@" path %@",path);
NSURL *url = [NSURL fileURLWithPath:path] ;
movie1 = [QTMovie movieWithURL:url error:nil];
[Movieview setMovie:movie1];
[[Movieview movie]play];
当我运行应用程序时,只播放音频。如果有人知道答案,请帮帮我
谢谢。答案 0 :(得分:0)
添加
[[movie1 window] makeKeyAndOrderFront:self];
它应该解决你的问题