こんにちは、ビデオをキャプチャして他のデバイスに転送するプロジェクトを 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.
}
私が欲しいのは、キャプチャしたビデオをある種のバッファに保存して、それを送信して他のデバイスがそのビデオを見ることができるようにすることです(ビデオ通話)。何か案は?