8.0 Cameras and photos: Capturing video and audio via Audiovideocapturedevice
Introduced
Unique Windows Phone 8.0 camera and photos
Capturing video and audio via Audiovideocapturedevice
Example
Demonstration of the application of Audiovideocapturedevice (WP8)
Cameraandphoto/audiovideocapturedevicedemo.xaml
<phone:phoneapplicationpage x:class= "Demo.CameraAndPhoto.AudioVideoCaptureDeviceDemo" xmlns= "Http://schem As.microsoft.com/winfx/2006/xaml/presentation "xmlns:x=" Http://schemas.microsoft.com/winfx/2006/xaml "xmlns: Phone= "Clr-namespace:microsoft.phone.controls;assembly=microsoft.phone" xmlns:shell= "Clr-namespace:
Microsoft.phone.shell;assembly=microsoft.phone "xmlns:d=" http://schemas.microsoft.com/expression/blend/2008 " Xmlns:mc= "http://schemas.openxmlformats.org/markup-compatibility/2006" fontfamily= "{StaticResource Phonefontfamilynormal} "fontsize=" {StaticResource phonefontsizenormal} "foreground=" {StaticResource PhoneForegroun Dbrush} "supportedorientations=" Portrait "orientation=" Portrait "mc:ignorable=" D "shell:systemtray.isvisible="
True "> <grid x:name=" layoutroot "background=" Transparent "> <StackPanel> <stackpanel orientation= "Horizontal" >
<canvas width= "height=" "180" rendertransformorigin= "0.5 0.5" > <c Anvas. background> <videobrush x:name= "VideoBrush"/> </canvas. Background> <Canvas.RenderTransform> <rotatetransform x:
Name= "RT"/> </Canvas.RenderTransform> </Canvas>
Name= "MediaElement" width= "<mediaelement" height= "180"/> </StackPanel> <stackpanel orientation= "Horizontal" margin= "0 0 0" > <button name= "b Tncapture "content=" video "click=" Btncapture_click "/> <button name=" btnstop "content=" Stop "click = "Btnstop_click" isenabled= "False"/> <button name= "Btnplay" content= "Play" click= "Btnplay_click"
/> </StackPanel> <textblock x:name= "lblmsg" textwrapping= "Wrap" margin= "0 10 0 0" /> </StackPanel> </Grid> </phone:phoneapplicationpag E>