When playing a video and immediately returning after, the application throws an exception
Exception thrown: 'System.NullReferenceException' in OneDrive-Cloud-Player.exe
This is most likely caused by the volume changed event firing from LibVLC(sharp) after the MediaPlayer object has been disposed of. Methods that subscribe to that event and try to use the MediaPlayer will then encounter a MediaPlayer that is not set resulting in an exception.
When playing a video and immediately returning after, the application throws an exception
This is most likely caused by the volume changed event firing from LibVLC(sharp) after the
MediaPlayer
object has been disposed of. Methods that subscribe to that event and try to use theMediaPlayer
will then encounter aMediaPlayer
that is not set resulting in an exception.