1
嗨,我正在Windows Phone 7中創建一個項目,捕獲視頻並將其傳輸到其他設備。這是我的代碼到目前爲止。Windows Phone 7創建視頻流
// Initialize the camera if it exists on the device.
if (videoCaptureDevice != null)
{
captureSource = new CaptureSource();
fileSink = new FileSink();
// Create the VideoBrush for the viewfinder.
videoRecorderBrush = new VideoBrush();
CompositeTransform transform = new CompositeTransform();
transform.CenterX = 0.5;
transform.CenterY = 0.5;
transform.Rotation = 90;
videoRecorderBrush.RelativeTransform = transform;
videoRecorderBrush.SetSource(captureSource);
// Display the viewfinder image on the rectangle.
viewfinderRectangle.Fill = videoRecorderBrush;
// Start video capture and display it on the viewfinder.
captureSource.Start();
// Set the button state and the message.
}
我要的是保存已捕獲某種緩衝的視頻,這樣我可以把它和其他設備可以看到,視頻(視頻通話)。有任何想法嗎?