2013-09-27 90 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