'Getting Timed ID3 Metadata from an HLS stream using Libvlcsharp

I am trying to use Libvlcsharp to play back HLS video. That part works well, but I also want to extract timed ID3 metadata from the live stream, is this supported?

I have tried to use the event:

_mediaPlayer.Media.MetaChanged 

But this does not appear to fire when timed ID3 metadata arrives. I have seen docs on a function called "AddMetadataListener", but I am unsure how to use this:

https://videolan.videolan.me/vlc/group__vlc__player____metadata.html#gace6a4fc0f59e7ff3824d19446f19b423



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source