internal bool Contains(string name)
 {
     return(Capabilities.Any(cap => cap.Name == name));
 }
Exemple #2
0
 /// <summary>
 /// Checks whether the payload ID in an RTP packet received from the remote call party
 /// is in this track's list.
 /// </summary>
 /// <param name="payloadID">The payload ID to check against.</param>
 /// <returns>True if the payload ID matches one of the codecs for this stream. False if not.</returns>
 public bool IsPayloadIDMatch(int payloadID)
 {
     return(Capabilities?.Any(x => x.ID == payloadID) == true);
 }
Exemple #3
0
 /// <summary>
 /// Checks whether the payload ID in an RTP packet received from the remote call party
 /// is in this track's list.
 /// </summary>
 /// <param name="payloadID">The payload ID to check against.</param>
 /// <returns>True if the payload ID matches one of the codecs for this stream. False if not.</returns>
 public bool IsPayloadIDMatch(int payloadID)
 {
     return(Capabilities.Any(x => x.FormatID == payloadID.ToString()));
 }