Skip to content

Instantly share code, notes, and snippets.

@veeneck
Last active August 29, 2015 13:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veeneck/9943235 to your computer and use it in GitHub Desktop.
Save veeneck/9943235 to your computer and use it in GitHub Desktop.
Video playback with SpriteKit
- (void) loadVideo {
SKVideoNode* introVideo = [SKVideoNode videoNodeWithVideoFileNamed:@"gameandcode_mockup_forryan.mov"];
introVideo.position = CGPointMake(CGRectGetMidX(self.frame),
CGRectGetMidY(self.frame));
[self addChild: introVideo];
[introVideo play];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment