需要帮助在Visual Studio VB中从wme9转换为ee3 [英] Need help converting from wme9 to ee3 in Visual Studio VB
问题描述
目前正在运行Windows Vista Business(32位)SP1。安装并运行Visual Studio 2008。尝试将应用程序从使用WME9转换为EE3。我有EE SDK但无法在任何地方找到任何帮助进行翻译。我的申请非常非常非常b $ b基本。定义编码器启动编码器停止编码我当前的应用程序使用.wme文件,该文件具有已定义的实时源和输出(从编码器拉出)全部设置。为EE 3提供类似的.xel文件。
Currently running Windows Vista Business (32-bit) SP1. Have Visual Studio 2008 installed and running. Trying to convert an application from using WME9 to EE3. I have the EE SDK but can not find any help anywhere to translate. My application is very, very basic. Define encoder start encoder stop encoder. My current application uses a .wme file that has the live source defined and the output (pull from encoder) all set. Have a comparable .xel file for EE 3.
在公共类中我有以下内容....
In the Public Class I have the following....
Dim Encoder As WMEncoderLib.WMEncoder = New WMEncoderLib.WMEncoder()
昏暗WMENC_ENCODER_STARTING = 1
昏暗WMENC_ENCODER_RUNNING = 2
昏暗WMENC_ENCODER_PAUSED = 3
昏暗WMENC_ENCODER_STOPPING = 4
昏暗WMENC_ENCODER_STOPPED = 5
Dim Encoder As WMEncoderLib.WMEncoder = New WMEncoderLib.WMEncoder()
Dim WMENC_ENCODER_STARTING = 1
Dim WMENC_ENCODER_RUNNING = 2
Dim WMENC_ENCODER_PAUSED = 3
Dim WMENC_ENCODER_STOPPING = 4
Dim WMENC_ENCODER_STOPPED = 5
启动编码器....
          Encoder.Load(" C:\ xxxxx \ xx.wme")
Encoder.Broadcast.PortNumber(WMEncoderLib.WMENC_BROADCAST_PROTOCOL.WMENC_PROTOCOL_HTTP)= 5541
            Encoder.PrepareToEncode(True)
Encoder.Start()
Encoder.Load("C:\xxxxxx\xx.wme")
Encoder.Broadcast.PortNumber(WMEncoderLib.WMENC_BROADCAST_PROTOCOL.WMENC_PROTOCOL_HTTP) = 5541
Encoder.PrepareToEncode(True)
Encoder.Start()
停止编码器....
         如果Encoder.RunState = WMENC_ENCODER_RUNNING然后
                Encoder.Stop()
做,直到(Encoder.RunState = WMENC_ENCODER_STOPPED)
                &NBSP ;   System.Threading.Thread.Sleep(200)
循环
Encoder.Flush()
结束如果
If Encoder.RunState = WMENC_ENCODER_RUNNING Then
Encoder.Stop()
Do Until (Encoder.RunState = WMENC_ENCODER_STOPPED)
System.Threading.Thread.Sleep(200)
Loop
Encoder.Flush()
End If
请帮助,我不知道如何将上述代码翻译成EE3,也无法在任何地方找到任何帮助。
Please help, I have no idea how to translate the above code to EE3 nor can I find any help anywhere.
谢谢,
Doug
推荐答案
长期回复道歉。
Apologies for the long time in replying.
您是否查看过SDK目录下的Live示例?希望这会有所帮助。
Have you looked at the Live sample that ships under the SDK directory? Hopefully that will help.
问候
Dean。
这篇关于需要帮助在Visual Studio VB中从wme9转换为ee3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!