public void OnPlayerEvent(MediaLoadEventWrapper p0)
 {
     RunOnUiThread(() =>
     {
         button.Text = "Loaded " + p0.Value;
     });
 }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            button = FindViewById <Button>(Resource.Id.myButton);

            button.Click += delegate { button.Text = $"{count++} clicks!"; };

            //Create the PlayerWrapper
            PlayerWrapper pv = new PlayerWrapper(null);

            //Register to events from the Wrapper Lib
            regHandler = pv.AsEventDispatcherWrapper().AddEventListener(this);
            var mv = new MediaLoadEventWrapper(null);
            //Read settings from the Original Lib
            PlayerSettings settings = pv.AsSettings();

            if (settings.Protection == DRMProtection.PlayReady)
            {
                Console.WriteLine("PlayerReady protection");
            }
        }