NSURL *url = [NSURL URLWithString:URL];
self.objMovie = [QTMovie movieWithURL:url error:&error];
if(self.objMovie != nil)
{
// Mark the movie as not editable
[self.objMovie setAttribute:[NSNumber numberWithBool:NO] forKey:QTMovieEditableAttribute];
[self.objPlayer setMovie:self.objMovie];
//[[self.objPlayer window] makeKeyAndOrderFront:self];
NSLog(@"Error in Video = %@",error);
[self.objPlayer play:self];
}
上面的代码适用于手动布局,但是当我尝试将其与 Autolayout 一起使用时会崩溃。
环境:OSx 版本:10.8.3
得到错误:
-[StdMovieUISliderCell sliderType]:无法识别的选择器发送到实例 0x107157990