C# Windows 中的 VLC 视频播放器无法播放 .flv 网络文件
VLC Videoplayer in C# Windows Form doesn't play .flv web file
我正在使用 xml 文件,该文件将 link 输出到 .flv 文件。
现在我想在我的 C# Windows 表单中的 VLC Videoplayerscreen 中播放这个文件。
当我将 link 直接放在 VLC 播放器的 MRL 中时,它工作正常并播放文件。
当我将带有 .flv link 的字符串放入 MRL 的代码中时,它不播放。
我有:
try
{
// XML works fine and flv link is placed inside nuvid
XmlNodeList nuvid = xmlDoc.GetElementsByTagName("location");
vlcvid.MRL = nuvid[1].InnerText;// placing the link inside the MRL
vlcvid.AutoPlay = true; // Try to play
MessageBox.Show(vlcvid.MRL);// the link is placed succesfull inside the MRL
}
catch {
}
现在我将视频 link 添加到播放列表并开始播放播放列表。有效!
vlcvid.playlist.add(vlcvid.MRL);
vlcvid.playlist.next();
我正在使用 xml 文件,该文件将 link 输出到 .flv 文件。
现在我想在我的 C# Windows 表单中的 VLC Videoplayerscreen 中播放这个文件。 当我将 link 直接放在 VLC 播放器的 MRL 中时,它工作正常并播放文件。 当我将带有 .flv link 的字符串放入 MRL 的代码中时,它不播放。
我有:
try
{
// XML works fine and flv link is placed inside nuvid
XmlNodeList nuvid = xmlDoc.GetElementsByTagName("location");
vlcvid.MRL = nuvid[1].InnerText;// placing the link inside the MRL
vlcvid.AutoPlay = true; // Try to play
MessageBox.Show(vlcvid.MRL);// the link is placed succesfull inside the MRL
}
catch {
}
现在我将视频 link 添加到播放列表并开始播放播放列表。有效!
vlcvid.playlist.add(vlcvid.MRL);
vlcvid.playlist.next();