public static void AddVideoEffect(MediaPlayer mediaPlayer, string id, IPropertySet properties)
 {
     if (mediaPlayer == null)
     {
         throw new ArgumentNullException(nameof(mediaPlayer));
     }
     if (string.IsNullOrWhiteSpace(id))
     {
         throw new ArgumentException("Effect ID not set", nameof(id));
     }
     if (properties == null)
     {
         properties = new PropertySet();
     }
     if (!properties.ContainsKey(IDKey))
     {
         properties.Add(IDKey, id);
     }
     mediaPlayer.AddVideoEffect(typeof(VideoEffect).FullName, false, properties);
 }