1

Im using VS2017, C#, and WinForms to make a desktop application. I installed the VLC.DotNet library through NuGet, and trying to play a local video and works perfectly. Nevertheless, when I try to set the media as a url to stream it in this way:

vlcControl1.SetMedia(new Uri("https://inliveserver.com:2000/l/?listen.8572.m3u8"));

and then I play it, nothing happens. Is this the right way to do it? I saw this method in several tutorials and it appears to work. What am I missing?

4

1 回答 1

0

由于我在整个网络上都没有找到解决方案,所以我读了一条让我大开眼界的评论“m3u8 只是带有文件实际路径的文本文件”。所以我下载了那个文件,我看到了另一个 m3u8,我在 VLC 插件中使用了它并工作了!所以问题是播放列表的串联。即使在独立的 VLC 应用程序中这有效,在 C# 组件中也是不允许的。

TL/DR:这是播放列表中的播放列表,VLC 组件显然对此有问题。

于 2019-01-17T15:40:23.423 回答