2012-06-18 3 views
4

신청 WPF 나는 Microsoft.expression.encoder 및 프레임 워크 4.0을 사용하여 방송 비디오 WPF 응용 프로그램을 가지고 있지만,이 broadcasting.Is 어떤 제안이 방송하는 동안 지연을 감소하는 동안 15 초 지연을 얻었다.비디오 방송

아래 내 서버와 클라이언트 시스템에서 모두 웹캠을 보여 MediaElement에를 사용하고있는 코드

using Microsoft.Expression.Encoder.Live; 
using Microsoft.Expression.Encoder; 

private void button1_Click(object sender, RoutedEventArgs e) 
{ 
    try 
    { 
     EncoderDevice video = null; 
     EncoderDevice audio = null; 
     GetSelectedVideoAndAudioDevices(out video, out audio); 
     StopJob(); 

     if (video == null) 
     { 
      return; 
     } 

     StopJob(); 
     _job = new LiveJob(); 

     if (video != null && audio != null) 
     { 
      //StopJob(); 
      _deviceSource = null; 
      _deviceSource = _job.AddDeviceSource(video, audio); 
      _job.ActivateSource(_deviceSource); 

      // Finds and applys a smooth streaming preset   
      //_job.ApplyPreset(LivePresets.VC1HighSpeedBroadband4x3); 

      // Creates the publishing format for the job 
      PullBroadcastPublishFormat format = new PullBroadcastPublishFormat(); 
      format.BroadcastPort = 9090; 
      format.MaximumNumberOfConnections = 50; 

      // Adds the publishing format to the job 
      _job.PublishFormats.Add(format); 

      // Starts encoding 
      _job.StartEncoding(); 
     } 
     //webCamCtrl.StartCapture(); 
    } 
    catch (Exception ex) 
    { 
     WriteLogFile(this.GetType().Name, "button1_Click", ex.Message.ToString()); 
    } 

} 

입니다. 클라이언트 측에

try 
      { 

       theMainWindow.getServerIPAddress(); 
       IP = theMainWindow.machineIP; 
       MediaElement1.Source = new Uri("http://" + IP + ":9090/"); 
      } 
      catch (Exception ex) 
      { 
      } 
+0

대역폭 테스트 ([SpeedTest.net] (http://speedtest.net))를 실행하는 경우 업로드 속도와 다운로드 속도는 어떻게됩니까? – Erik

답변

0

당신이 propably 사용할 수있는 부드러운 스트리밍은 낮은 비트 레이트 물질과 재생을 시작하고 점차적으로 클라이언트 버퍼가 가득로 증가 IIS. Silverlight는 Smooth Streaming에 대한 내장 기능을 지원하며, WPF (적어도 이론적으로)에서 손으로 구현할 수 있습니다.

클라이언트 측에서 SL을 사용을 중지 특정 일이 있습니까?