Пример #1
0
 public void setRemoteVideoWindow(PortSipLib sipLib, long sessionid, PortSIPVideoRenderer renderer)
 {
     sipLib.setConferenceVideoWindow(null);
     foreach (Session session in sessions)
     {
         if (session.state == CALL_STATE_FLAG.CONNECTED && sessionid != session.SessionID)
         {
             sipLib.setRemoteVideoWindow(session.SessionID, null);
         }
     }
     sipLib.setRemoteVideoWindow(sessionid, renderer);
 }
Пример #2
0
 public void AddActiveSessionToConfrence(PortSipLib sipLib)
 {
     foreach (Session session in sessions)
     {
         if (session.state == CALL_STATE_FLAG.CONNECTED)
         {
             sipLib.setRemoteVideoWindow(session.SessionID, null);
             sipLib.joinToConference(session.SessionID);
             sipLib.sendVideo(session.SessionID, true);
         }
     }
 }