Record video file with 'thumbnail' image in Windows phone 8
- by Deepak
I'm trying to create a video capturing application store video file with 'thumbnail' image in Windows phone 8. I got some hint from the following link :
How to get the thumbnail of a recorded video - windows phone 8?.
But the result is quite annoying. I think there is some problem with the function.
void captureSource_CaptureImageCompleted(object sender, CaptureImageCompletedEventArgs e)
{
using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication())
{
WriteableBitmap wb = e.Result;
string fileName = "CameraMovie.jpg";
if (isoStore.FileExists(fileName))
isoStore.DeleteFile(fileName);
IsolatedStorageFileStream file = isoStore.CreateFile(fileName);
Extensions.SaveJpeg(wb, file, wb.PixelWidth, wb.PixelHeight, 0, 85);
file.Close();
captureSource.Stop();
fileSink.CaptureSource = null;
fileSink.IsolatedStorageFileName = null;
}
}
e.Result has some invalid data in it.while i bind it to an image control it shows some annoying image.
Anyone please help me.