Exemplo n.º 1
0
        internal static MediaIssueEvent FromNative(
            ADLMediaIssueEvent e)
        {
            var result = new MediaIssueEvent();

            result.ScopeId   = e.scopeId.body;
            result.MediaType = MediaType.FromString(e.mediaType.body);
            result.IsStarted = e.isStarted;
            result.msg       = e.msg.body;
            return(result);
        }
Exemplo n.º 2
0
 private void on_media_issue_callback_t(IntPtr opaque, ref ADLMediaIssueEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onMediaIssueEvent(MediaIssueEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
 private void on_media_issue_callback_t(IntPtr opaque, ref ADLMediaIssueEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onMediaIssueEvent(MediaIssueEvent.FromNative(e));
     }
     catch (Exception)
     {
     }
 }
 internal static MediaIssueEvent FromNative(
     ADLMediaIssueEvent e)
 {
     var result = new MediaIssueEvent();
     result.ScopeId = e.scopeId.body;
     result.MediaType = MediaType.FromString(e.mediaType.body);
     result.IsStarted = e.isStarted;
     result.msg = e.msg.body;
     return result;
 }