コード例 #1
0
 private void on_media_stream_callback_t(IntPtr opaque,
                                         ref ADLUserStateChangedEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onMediaStreamEvent(
                 UserStateChangedEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
コード例 #2
0
 private void on_user_event_callback_t(IntPtr opaque,
                                       ref ADLUserStateChangedEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onUserEvent(
                 UserStateChangedEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
コード例 #3
0
        internal static UserStateChangedEvent FromNative(
            ADLUserStateChangedEvent userStateChangedEvnt)
        {
            UserStateChangedEvent result = new UserStateChangedEvent();

            result._scopeId   = userStateChangedEvnt.scopeId.body;
            result._mediaType =
                MediaType.FromString(userStateChangedEvnt.mediaType.body);
            result._isConnected     = userStateChangedEvnt.isConnected;
            result._userId          = userStateChangedEvnt.userId;
            result._audioPublished  = userStateChangedEvnt.audioPublished;
            result._screenPublished = userStateChangedEvnt.screenPublished;
            result._screenSinkId    = userStateChangedEvnt.screenSinkId.body;
            result._videoPublished  = userStateChangedEvnt.videoPublished;
            result._videoSinkId     = userStateChangedEvnt.videoSinkId.body;
            return(result);
        }
コード例 #4
0
 private void on_user_event_callback_t(IntPtr opaque,
     ref ADLUserStateChangedEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onUserEvent(
                 UserStateChangedEvent.FromNative(e));
     }
     catch (Exception )
     {
     }
 }
コード例 #5
0
 private void on_media_stream_callback_t(IntPtr opaque,
     ref ADLUserStateChangedEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onMediaStreamEvent(
                 UserStateChangedEvent.FromNative(e));
     }
     catch (Exception )
     {
     }
 }
コード例 #6
0
 internal static UserStateChangedEvent FromNative(
     ADLUserStateChangedEvent userStateChangedEvnt)
 {
     UserStateChangedEvent result = new UserStateChangedEvent();
     result._scopeId = userStateChangedEvnt.scopeId.body;
     result._mediaType =
         MediaType.FromString(userStateChangedEvnt.mediaType.body);
     result._isConnected = userStateChangedEvnt.isConnected;
     result._userId = userStateChangedEvnt.userId;
     result._audioPublished = userStateChangedEvnt.audioPublished;
     result._screenPublished = userStateChangedEvnt.screenPublished;
     result._screenSinkId = userStateChangedEvnt.screenSinkId.body;
     result._videoPublished = userStateChangedEvnt.videoPublished;
     result._videoSinkId = userStateChangedEvnt.videoSinkId.body;
     return result;
 }