Keep PhotoCamera initialized across PhoneApplicationPage visits

eltodesc

New member
Dec 12, 2012
1
0
0
I need the ability to retain the PhotoCamera initialization state throughout the life of my application. I am attempting to do this within a static class. Within this class, I create a public static instance of the PhotoCamera object as well as a public static instance of a VideoBrush and set the brush's source as the camera. This all happens within my static constructor (so only once). Now, when I navigate to my camera preview page (that contains a canvas object to display the real-time video stream) I set the canvas's background to the static instance of my VideoBrush. This works the very first time I navigate to my camera preview page but does no longer displays video on any subsequent visits. The camera appears to still be working (as I can save off frames) but the video stream never gets shown within my canvas. My goal is to avoid the multi-second initialization delay each time the camera get initialized whenever I navigate to my camera preview page. How can I accomplish this????? Thanks for your help.
 

Members online

Forum statistics

Threads
334,328
Messages
2,257,301
Members
428,728
Latest member
Flash43