2013-09-27 93 views
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. 

     } 

我要的是保存已捕获某种缓冲的视频,这样我可以把它和其他设备可以看到,视频(视频通话)。有任何想法吗?

回答

0

bsically你可以去这个样本来回回MSDN

voip sample

对于如何使应用程序在这里正常的描述是在Silverlight

一个链接,您可以MAPP至少一些代码和理解从这里开始......

video call silverlight