#Webcam on your #Wrist- monitor your house at a glance.
App Download link:
https://itunes.apple.com/us/app/mobile-webcam/id652758590?mt=8
Got a webcam or IP cam at home, and you’d like to check up on your pets / kids or just to check that everything is OK? This new update to our Mobile Webcam App – gives you the ability to check out your webcam from your wrist.
It’s a first version, so the image stream is slow, but it’s a practical application of WatchOS, paired with an existing app.
A quick WatchOS tip; you can’t use the following code to download an image on a real device, even through it works on the simulator:
NSData * imageData = [[NSData alloc]
initWithContentsOfURL: [NSURL URLWithString: self.strUrl ]];
[self.imgOutput setImage:[UIImage imageWithData: imageData]];
Instead, you have to use asynchronous code as follows;
NSURL *url = [NSURL URLWithString:
@”http://upload.wikimedia.org/wikipedia/commons/7/7f/Williams_River-27527.jpg”%5D;
NSURLSessionDownloadTask *downloadPhotoTask = [[NSURLSession sharedSession]
downloadTaskWithURL:url completionHandler:^(NSURL *location, NSURLResponse *response, NSError *error) {
UIImage *downloadedImage = [UIImage imageWithData:
[NSData dataWithContentsOfURL:location]];
[self.imgOutput setImage:downloadedImage ];
}];
[downloadPhotoTask resume];
Hope this helps! 🙂