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