1

嗨,我正在 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.

        }

我想要的是将捕获的视频保存到某种缓冲区,以便我可以发送它并且其他设备可以看到该视频(视频通话)。有任何想法吗?

4

1 回答 1

0

基本上,您可以从 msdn 获取此示例

网络电话样本

有关如何制作应用程序的正常描述,这里是 silverlight 中的链接

你可以从这里映射至少一些代码和理解..

视频通话银光

于 2013-09-27T09:51:24.860 回答