c# - video recording in portrait is coming in 90 degree rotated form in windows phone 8 -
i have develope app in doing video recording .every thing running fine .but when recording video in portrait orientation video coming in 90 degree rotated form .
i using xaml video
<rectangle x:name="viewfinderrectangle" width="460" height="661" horizontalalignment="left" canvas.left="10" canvas.top="10"/> <mediaelement x:name="videoplayer" width="460" height="661" autoplay="true" rendertransformorigin="0.5,0.5" verticalalignment="center" horizontalalignment="center" stretch="uniform" canvas.left="10" canvas.top="10"> <mediaelement.projection> <planeprojection/> </mediaelement.projection> </mediaelement>
before start recording should use following property.
private audiovideocapturedevice videorecordingdevice; videorecordingdevice.setproperty(knowncamerageneralproperties.encodewithorientation, videorecordingdevice.sensorlocation == camerasensorlocation.back ? 90 : -90); nb: remember used wp8 or later version.
Comments
Post a Comment