Skip to content

Commit

Permalink
Merge pull request #14 from jaygno/master
Browse files Browse the repository at this point in the history
check dtls
  • Loading branch information
notedit authored Feb 10, 2023
2 parents 93ef212 + ccb42d0 commit de96661
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sdpinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,14 @@ func (s *SDPInfo) String() string {
mediaMap.IceUfrag = s.GetICE().GetUfrag()
mediaMap.IcePwd = s.GetICE().GetPassword()

mediaMap.Fingerprint = &transform.FingerprintStruct{
Type: s.GetDTLS().GetHash(),
Hash: s.GetDTLS().GetFingerprint(),
}
if s.GetDTLS() != nil {
mediaMap.Fingerprint = &transform.FingerprintStruct{
Type: s.GetDTLS().GetHash(),
Hash: s.GetDTLS().GetFingerprint(),
}

mediaMap.Setup = s.GetDTLS().GetSetup().String()
mediaMap.Setup = s.GetDTLS().GetSetup().String()
}

for _, codec := range media.GetCodecs() {

Expand Down

0 comments on commit de96661

Please sign in to comment.