我已经开发了一个应用程序,其中我正在做视频录制.Every的东西是运行良好的.But当我录制的视频在纵向,然后视频是在90度旋转的形式。
我正在将此xaml用于视频
<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>发布于 2015-01-12 19:26:27
在开始录制之前,您应该使用以下属性。
private AudioVideoCaptureDevice VideoRecordingDevice;
VideoRecordingDevice.SetProperty(KnownCameraGeneralProperties.EncodeWithOrientation, VideoRecordingDevice.SensorLocation == CameraSensorLocation.Back ? 90 : -90);注:请记住,它仅用于wp8或更高版本。
https://stackoverflow.com/questions/16102309
复制相似问题