Package rtpi.packets

Examples of rtpi.packets.RtcpiByePacket


  if (members<MAX_PARTICIPANTS_FOR_IMMEDIATE_BYE) {
      try {
    RtcpiSourceDescriptionPacket spacket=constructSdesPacket();
    spacket.flush();
    byte[] spacketData = spacket.getPacket();
    RtcpiByePacket bpacket=new RtcpiByePacket(localParticipant.getParticipantID());
    bpacket.flush();
    byte[] bpacketData = bpacket.getPacket();
    byte [] packetData = new byte[spacketData.length+bpacketData.length];
    System.arraycopy(spacketData, 0, packetData, 0, spacketData.length);
    System.arraycopy(bpacketData, 0, packetData, spacketData.length, bpacketData.length);
    TransportPacket tpacket = new TransportPacket(packetData.length,packetData);
    rtcpiTransport.sendTransportPacket(tpacket);
View Full Code Here


        rtcpiPacket = new RtcpiSourceDescriptionPacket(data, currentStart);
        rtcpiPacket.parse();
        rtcpiPackets.add(rtcpiPacket);
        break;
    case RtcpiByePacket.BYE:
        rtcpiPacket = new RtcpiByePacket(data, currentStart);
        rtcpiPacket.parse();
        rtcpiPackets.add(rtcpiPacket);
        break;
    case RtcpiSubcomponentReportPacket.SUBREP:
        rtcpiPacket = new RtcpiSubcomponentReportPacket(data, currentStart);
View Full Code Here

        //System.out.println("Sending ADU");
        try {
      RtcpiSourceDescriptionPacket spacket=constructSdesPacket();
      spacket.flush();
      byte[] spacketData = spacket.getPacket();
      RtcpiByePacket bpacket=new RtcpiByePacket(localParticipant.getParticipantID());
      bpacket.flush();
      byte[] bpacketData = bpacket.getPacket();
      byte [] packetData = new byte[spacketData.length+bpacketData.length];
      System.arraycopy(spacketData, 0, packetData, 0, spacketData.length);
      System.arraycopy(bpacketData, 0, packetData, spacketData.length, bpacketData.length);
      TransportPacket tpacket = new TransportPacket(packetData.length,packetData);
      rtcpiTransport.sendTransportPacket(tpacket);
View Full Code Here

TOP

Related Classes of rtpi.packets.RtcpiByePacket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.