C# Class NewTOAPIA.Net.Rtp.InvalidRtpPacketException

InvalidRtpPacket exception is thrown when an Rtp packet has invalid contents either due to an invalid Rtp header or due to unexpected data in a stream such as a HeaderExtension where none should be present or an invalid TimeStamp value in an Rtp Frame.
This can be caused by other traffic than just Rtp on an IPEndPoint or Rtp traffic from another sending program that doesn't follow the same framing rules. It shouldn't be caused by packet data corruption on UDP streams since each UDP packet is CRC32 validated before being accepted and passed up by System.Net.Sockets. It also should only be an issue if there is SSRC & PayloadType collision between different sending applications, which should be rare if SSRCs are chosen according to the RFC 1889 specification. Perhaps we should rename this to be consistent with some form of 'streaming/framing error'. If we get a true 'invalid Rtp Packet' error, it's probably due to non-Rtp data being on the IP address and this should be filtered rather than Excepted. Perhaps we should republish this an event like was done with OutOfOrder so that non-Rtp traffic could be detected and logged.
Inheritance: System.ApplicationException
Datei anzeigen Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
InvalidRtpPacketException ( ) : System
InvalidRtpPacketException ( string message ) : System
InvalidRtpPacketException ( string message, Exception inner ) : System

Method Details

InvalidRtpPacketException() public method

public InvalidRtpPacketException ( ) : System
return System

InvalidRtpPacketException() public method

public InvalidRtpPacketException ( string message ) : System
message string
return System

InvalidRtpPacketException() public method

public InvalidRtpPacketException ( string message, Exception inner ) : System
message string
inner System.Exception
return System