मेरे पास Microsoft.expression.encoder और फ्रेमवर्क 4.0 का उपयोग करके वीडियो प्रसारित करने के लिए एक WPF एप्लिकेशन है, लेकिन प्रसारण के दौरान मुझे 15 सेकंड की देरी हुई। क्या प्रसारण के दौरान देरी को कम करने के लिए कोई सुझाव है ।15sec देरी के साथ वीडियो प्रसारित करने के लिए wpf एप्लिकेशन
नीचे कोड
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());
}
}
मैं MediaElement उपयोग कर रहा हूँ दोनों वेब कैमरा मेरे सर्वर और ग्राहक सिस्टम पर दिखाने के लिए है।
क्लाइंट साइड
try
{
theMainWindow.getServerIPAddress();
IP = theMainWindow.machineIP;
MediaElement1.Source = new Uri("http://" + IP + ":9090/");
}
catch (Exception ex)
{
}
कभी इस का हल मिल गया? –
केविन क्लोकेट: नहीं, अभी तक नहीं .. –