![](/img/trans.png)
[英]Stream images or desktop screen with VLC (LibVLCSharp for WPF)
[英]RTP stream with LibVLCSharp (WPF)
我試圖在 Windows 10 上使用 LibVLCSharp 播放實時 RTP stream。
我使用 LibVLCSharp 和 LibVLCSharp.WPF NuGet 庫。
以下是我正在執行的代碼:
LibVLC libVLC = new LibVLC();
MediaPlayer mediaPlayer = new MediaPlayer(libVLC);
Media m = new Media(_libVLC, "rtp://@:7777/", FromType.FromLocation);
mediaPlayer.Play(m);
我收到以下消息:
main demux meta debug: no meta reader modules matched
main input debug: `rtp://@:7777/' successfully opened
rtp demux error: unspecified payload format (type 96)
rtp demux: A valid SDP is needed to parse this RTP stream.
main demux error: SDP required
main demux error: A description in SDP format is required to receive the RTP stream. Note that rtp:// URIs cannot work with dynamic RTP payload format (96).
rtp demux debug: added RTP source (bfccda8c)
rtp demux debug: unknown payload (96)
我錯過了什么?
如果需要,我可以提供更多信息。 謝謝
看來你需要在某處寫一個 SDP 文件來描述你的 stream,然后播放那個 sdp 文件: https://forum.videolan.org/viewtopic.php?t=149657
StreamMediaInput 可能會工作,而不是在某處寫入文件,但我沒有測試。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.