问题描述
我正在尝试使用ffplay.exe在VB.NET中播放ogg文件,但我不知道具体如何。 这是我的代码:
Private Sub ButtonIR_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles ButtonIR.Click
If IsNotnothing(TextBoxSource.text) Then
TextBoxDETALLES.Clear()
Try
Dim CONVERSOR As New Process
CONVERSOR.StartInfo.FileName = "C:\ffplay.exe"
CONVERSOR.StartInfo.Arguments = TextBoxSource.Text
CONVERSOR.StartInfo.UseShellExecute = False
CONVERSOR.StartInfo.RedirectStandardOutput = True
CONVERSOR.StartInfo.RedirectStandardError = True
CONVERSOR.StartInfo.CreateNowindow = True
CONVERSOR.Start()
While Not CONVERSOR.StandardError.EndOfStream
TextBoxDETALLES.AppendText(CONVERSOR.StandardError.ReadLine & vbCrLf)
Application.DoEvents()
End While
MsgBox("HECHO")
Catch ex As Exception
MsgBox(ex.Message)
End Try
Else
MsgBox("Error")
End If
End Sub
我不是要转换它,而是想播放它
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)