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.