가능합니까? 나는 그것이라고 생각하지만, 나는 그것을 이해할 수 없다. 그래서Cocos2D Mac에서 QTMovieView를 사용 하시겠습니까?
, 지금까지 영화에 대한 코드 :
shrigString = [[NSBundle mainBundle] pathForResource : @ "shrig_h264_720p"ofType : "MOV"@] shrigURL = [NSURL fileURLWithPath : shrigString]; // shrigMovie = [QTMovie movieWithFile : @ "shrig_h264_720p.mov"오류 : nil]; shrigMovie = [QTMovie movieWithURL : shrigURL 오류 : nil]; shrigMovieView = [QTMovieLayer layerWithMovie : shrigMovie];
[[[[CCDirectorMac sharedDirector] openGLView] window] addChildWindow:shrigWindow ordered:NSWindowAbove];
[shrigWindow setContentView:shrigNSView];
[shrigNSView setLayer:shrigMovieView];
shrigMovieView.frame = CGRectMake(size.width /2, size.height /2, 1024, 576);
[shrigMovie autoplay];
[shrigMovie play];
NSLog(@"shrigMovie: %@", shrigMovie);
NSLog(@"shrigMovie is: %@", QTStringFromTime([shrigMovie currentTime]));
그러나 내 장면을 광고하는 방법을 알 수 없습니다. 이것은 Mac 용 Btw 용 Cocos2D입니다. 콘솔에서
:
shrigMovie입니다 : 0 : 00 : 00 :/2500 00.00 그래서 나는 그것을 확인로드, 단순히 표시되지 같아요?
모든 아이디어는 대단히 감사하겠습니다.
감사합니다.