小编Ano*_*han的帖子

在Wpf中关闭另一个窗口

如果主要打开两个Window A和B,如何使用写在Window B上的代码关闭Window A.

wpf c#-4.0

6
推荐指数
1
解决办法
9456
查看次数

wpf应用于广播视频,延迟15秒

我有一个使用Microsoft.expression.encoder和framework 4.0播放视频的WPF应用程序,但我在播放时有15秒的延迟.有任何建议减少广播时的延迟.

以下是守则

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 …
Run Code Online (Sandbox Code Playgroud)

c# wpf expression broadcasting video-streaming

5
推荐指数
1
解决办法
1029
查看次数

标签 统计

wpf ×2

broadcasting ×1

c# ×1

c#-4.0 ×1

expression ×1

video-streaming ×1