Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

[Custom Renderer/XF] Getting Native Camera Stream To Work

$
0
0

Please, before I explain and give code snippets, note that I do not want/need what Xamarin Forms Labs offers. That camera is intent, which is impractical to me, and I want to be able to customize the camera.

Anyway, I am attempting to get a native camera stream to work inside of Xamarin Forms. So far, I have a ContentPage called CameraPage:

http://pastie.org/9482010

And a custom renderer called CameraFrameRenderer:

http://pastie.org/9482011

The big question is, in the code above, how do I correctly pass in the CameraPreview (Code below, taken from example in monodroid) and allow viewing inside of Xamarin Forms.

Here is the code for the CameraPreview. Essentially, I want to be able to set the contents of ContentPage to that view. I have no idea how to do this part, and have researched/tried for hours now.

http://pastie.org/9482012


Viewing all articles
Browse latest Browse all 58056

Trending Articles