Skip to content

Events firing multiple times if subscribed from different views

  • LibVLCSharp: 0.0.4
  • LibVLCSharp Forms: 0.0.2
  • VideoLAN.LibVLC.Android: 3.0.0

If we subscribe to the event from two different views (and/or pages) it will be fired 2 times (both subscriptions will be fired twice, so 4 times in total), if we subscribe from 3 different views, the event fires 3 times (3 subscriptions will be fired in total 9 times) and so on.

Please see my test repository LibVlcSharpTest for demonstration

Take a closer look at MediaPlayer.TimeChanged event subscriptions in MainPage and in MediaPlayerTimeSliderView

Edited by Andrei
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information