Video for this session here: http://www.youtube.com/watch?v=VEuMgogl8eY&list=PL35E8B636BEC8411D&index=10&feature=plpp_video
Mike Bluestein will take us through the features of our unified cross-platform API that lets you use the same API to access Contacts, Location and Camera on iOS, Android and Windows Phone 7.
35. Taking Photos or Videos
• Specify which camera to use
• Query for camera availability
36. Taking Photos or Videos
• Specify which camera to use
• Query for camera availability
• Specify video quality
37. Taking Photos or Videos
• Specify which camera to use
• Query for camera availability
• Specify video quality
• Async and C# TPL Compatible
38. Taking Photos or Videos
• Specify which camera to use
• Query for camera availability
• Specify video quality
• Async and C# TPL Compatible
• Task.ContinueWith, IsCancelled, IsFaulted
39. Taking Photos or Videos
if (!picker.IsCameraAvailable)
return;
VideoView videoView = FindViewById<VideoView> (Resource.Id.video);
picker.TakeVideoAsync (new StoreVideoOptions
{
Directory = "Xamovies",
DefaultCamera = CameraDevice.Front,
DesiredLength = TimeSpan.FromMinutes (5)
})
.ContinueWith (t =>
{
if (t.IsCanceled || t.IsFaulted) // user cancelled or error
return;
videoView.SetVideoPath (t.Result.Path);
});
45. Geolocation
• Geolocator class
• Retrieve current location
• Listen for Location changes
• DesiredAccuracy influences the location
technology that is used