internal static MediaConnTypeChangedEvent FromNative(
     CDOMediaConnTypeChangedEvent mediaConnTypeChangedEvnt)
 {
     MediaConnTypeChangedEvent result = new MediaConnTypeChangedEvent();
     result._scopeId = mediaConnTypeChangedEvnt.scopeId.body;
     result._mediaType =
         MediaType.FromString(mediaConnTypeChangedEvnt.mediaType.body);
     result._connType = ConnectionType.FromString(
         mediaConnTypeChangedEvnt.connectionType.body);
     return result;
 }
        private void on_media_conn_type_changed_callback_t(IntPtr opaque,
            ref CDOMediaConnTypeChangedEvent e)
        {
            try
            {

                if (_listener != null)
                    _listener.onMediaConnTypeChanged(
                        MediaConnTypeChangedEvent.FromNative(e));
            }
            catch (Exception )
            {
            }
        }