예제 #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)
     {
     }
 }
예제 #3
0
 public virtual void onMediaInterruptEvent(MediaInterruptEvent e)
 {
 }
 internal static MediaInterruptEvent FromNative(
     ADLMediaInterruptEvent e)
 {
     var result = new MediaInterruptEvent();
     result.MediaType = MediaType.FromString(e.mediaType.body);
     result.Interrupt = e.interrupt;
     return result;
 }
 public virtual void onMediaInterruptEvent(MediaInterruptEvent e)
 {
 }