internal static MediaInterruptEvent FromNative( ADLMediaInterruptEvent e) { var result = new MediaInterruptEvent(); result.MediaType = MediaType.FromString(e.mediaType.body); result.Interrupt = e.interrupt; return(result); }
private void on_media_interrupt_callback_t(IntPtr opaque, ref ADLMediaInterruptEvent e) { try { if (_listener != null) { _listener.onMediaInterruptEvent(MediaInterruptEvent.FromNative(e)); } } catch (Exception) { } }
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; }