iOS and SpriteKit camera background - ios

I am developing a game for iOS using Scenekit and maybe GamePlayKit. What I want is for the background of the main game play to be set to a live camera feed. That should be simple enough. A little googling brought me to this`question. My question however, is will a technique like the one in the linked question work well with SpriteKit? The question deals with setting the background with UIKit. Can I use this option with SceneKit too or do I have to use some sort of SceneKit specific way to set the background like so?

Related

How to animate/playback handwriting drawings in iOS?

Does any One have and idea how to playback handwriting drawings in iOS?
A good start would be Apple's SpeedSketch sample Swift Application, which captures user gestures to implement a simple drawing App:
https://developer.apple.com/library/content/samplecode/SpeedSketch/Introduction/Intro.html
You can just store these gestures in an array and then play them back at a speed of your choice. Voila, animated signature.

Swift - Slow Motion Camera in App

I'm been learning Swift and iOS development and am interested in making an application that uses the camera on the back of the iPhone to shoot slow motion video and then allow the user to use a slider to move through the video normally, but also to move frame by frame. Of course, this would be regulated by a button that transitioned the user from "normal navigation" to frame by frame. Can anyone point me in the right direction? Are there any resources where I can read about using the "slo-mo" feature in a custom app? Thanks.
If you don't want the user to be able to save the slow-mo video, what you could do is take a video shot, then have the app play it back in slow-mo. You can do all this using the AVFoundation framework. Here are some links to help you out:
Taking Control of the iPhone Camera in iOS 8
Objective-C: How to do slow-motion video in iOS (yes, this is for Objective-C, but you can change the code to Swift or just copy and paste it into a new Objective-C file)

What do I have to do to set off the iPhone camera automatically?

I'm making an app that has to set off the camera. Does this have to be done with user interaction? Or can I just call a function? It seems like it has to be possible. It looks like Snapchat does it because it has it's own camera UI (FYI I'm using swift and am very new to iOS programming. I've been at it for about a week, but I have JS experience)
You will need to implement your own Camera functionality from scratch using AVFoundation. This is how apps like Snapchat work.
Start here:
https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/04_MediaCapture.html#//apple_ref/doc/uid/TP40010188-CH5-SW2

sound design for spritekit with swift

I'm trying to figure out how to add some sound design elements to my game. For example.. I want an engine sound to change pitch or grow louder as my sprite moves faster. Obviously this is outside the scope of SKAction. I've tried AVAudioPlayer.. this works but it seems to be more suited towards playing music. Even running a short loop using AVAudioPlayer produces popping sounds between each loop.
How can I control things like pitch, volume, playback speed programmatically?
This seems useful.
http://kstenerud.github.io/ObjectAL-for-iPhone/index.html
but is there a swift version.. or can I bridge this over to swift somehow.
ObjectAL can be added as a Pod into a Swift project, i am using it right now in my own Swift projects.

iOS - Embed video in app with my app User Interface

I am working on an app that can play some short animated clips. At this point my only option is to embed animated frames. It works just fine. But I am just wondering if there's another way to simply embed the animated files directly as a movie clip in order to avoid importing tons of frames. Perhaps it'd be better for image compression.
In that regards I am aware of these alternatives: the MediaPlayer Framework, MPMoviePlayerController presented here http://mobile.tutsplus.com/tutorials/iphone/mediaplayer-framework_mpmovieplayercontroller_ios4/ and also some other techniques showed here http://www.raywenderlich.com/13418/how-to-play-record-edit-videos-in-ios
However this would mean using Apple's UI. I would like instead to create a more integrated experience that is using my own app UI.
Is there a library for that?
Take Look at AVPlayer Class Reference
https://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVPlayer_Class/Reference/Reference.html.
and AVPlayerLayer Class Reference
http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVPlayerLayer_Class/Reference/Reference.html
It has the ability to do what you need. You can aslo animate the layer just like other CALayers

Resources