private static void ValueAtKeyPathDidChangeThunk(IntPtr self, string keyPath) { GCHandle handle = GCHandle.FromIntPtr(self); OSXMediaPlayer player = (OSXMediaPlayer)handle.Target; player.ValueAtKeyPathDidChange(keyPath); }
// Convenience method for calling OSXMediaPlayer.IssuePluginEvent. // private void IssuePluginEvent(AVPPluginEventType type) { OSXMediaPlayer.IssuePluginEvent(type, _handle); }