最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - LibVLCSharp PlayAudio callback of mediaPlayer stop being called - Stack Overflow

programmeradmin4浏览0评论

I'm using LibVlcSharp mediaPlayer to play audio from a rtp stream.

using (var media = new Media(_libVLC, new Uri($"rtp://{_url}"), ":no-video"))
 
using (var mediaPlayer = new MediaPlayer(media))

To catch the audio, I use the PlayAudio callback :

mediaPlayer.SetAudioCallbacks(PlayAudio, PauseAudio, ResumeAudio, FlushAudio, null);

It work as excepted, but randomly the callback stop being called, even if the transmitter (a VLC on other device) still work.

I tried to put a real VLC on the same device and there is not problems.

The callback start working again if I reboot the transmitter.

发布评论

评论列表(0)

  1. 暂无评论