Windows Phone 7创建视频流

时间:2013-09-27 03:21:24

标签: c# windows-phone-7 video

您好我正在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.

        }

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

1 个答案:

答案 0 :(得分:0)

bsically你可以去msdn的这个样本

voip sample

有关如何在此处创建应用程序的正常说明,请参阅silverlight中的链接

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

video call silverlight