예제 #1
0
        internal static MediaInterruptEvent FromNative(
            ADLMediaInterruptEvent e)
        {
            var result = new MediaInterruptEvent();

            result.MediaType = MediaType.FromString(e.mediaType.body);
            result.Interrupt = e.interrupt;
            return(result);
        }
예제 #2
0
 private void on_media_interrupt_callback_t(IntPtr opaque, ref ADLMediaInterruptEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onMediaInterruptEvent(MediaInterruptEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
 private void on_media_interrupt_callback_t(IntPtr opaque, ref ADLMediaInterruptEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onMediaInterruptEvent(MediaInterruptEvent.FromNative(e));
     }
     catch (Exception )
     {
     }
 }
 internal static MediaInterruptEvent FromNative(
     ADLMediaInterruptEvent e)
 {
     var result = new MediaInterruptEvent();
     result.MediaType = MediaType.FromString(e.mediaType.body);
     result.Interrupt = e.interrupt;
     return result;
 }