     else
       sendDataByTCP client.socket, client.videoTCPControlChannel, buf
   else
-    videoRTCPSocket.send buf, 0, buf.length, client.clientVideoRTCPPort, client.ip, (err, bytes) ->
-      if err
-        console.error "[videoRTCPSend] error: #{err.message}"
+    if client.clientVideoRTCPPort?
+      videoRTCPSocket.send buf, 0, buf.length, client.clientVideoRTCPPort, client.ip, (err, bytes) ->
+        if err
+          console.error "[videoRTCPSend] error: #{err.message}"
 
 sendAudioSenderReport = (client) ->
   if not timeForAudioRTPZero?

    else
      sendDataByTCP client.socket, client.audioTCPControlChannel, buf
  else
    audioRTCPSocket.send buf, 0, buf.length, client.clientAudioRTCPPort, client.ip, (err, bytes) ->
      if err
        console.error "[audioRTCPSend] error: #{err.message}"

stopSendingRTCP = (client) ->
  if client.timeoutID?

        else
          sendDataByTCP client.socket, client.videoTCPDataChannel, rtpBuffer
      else
        if client.clientVideoRTPPort?
          videoRTPSocket.send rtpBuffer, 0, rtpBuffer.length, client.clientVideoRTPPort, client.ip, (err, bytes) ->
            if err
              console.log "[videoRTPSend] error: #{err.message}"
  return

sendVideoPacketAsSingleNALUnit = (nalUnit, timestamp) ->
