Beispiel #1
0
  /**
   * Adds a Picture Loss Indication to the feedback queue
   *
   * @param ssrcMediaSource
   * @param bitString the original application message
   * @return 0 if packet was queued, -1 if no feedback support, 1 if redundant
   */
  public int fbAppLayerFeedback(long ssrcMediaSource, byte[] bitString) {
    int ret = 0;

    if (this.rtcpAVPFIntf == null) return -1;

    RtcpPktPSFB pkt = new RtcpPktPSFB(this.ssrc, ssrcMediaSource);
    pkt.makeAppLayerFeedback(bitString);
    ret = this.rtcpSession.addToFbQueue(ssrcMediaSource, pkt);
    if (ret == 0) this.rtcpSession.wakeSenderThread(ssrcMediaSource);
    return ret;
  }