Expose NewSDPType

Allows a user to easily marshal a string to SDPType
This commit is contained in:
decanus
2021-01-05 14:01:08 +01:00
committed by Sean DuBois
parent 6ef4c1bba8
commit e3ec4024ba
5 changed files with 6 additions and 4 deletions

View File

@@ -623,7 +623,7 @@ func valueToSessionDescription(descValue js.Value) *SessionDescription {
return nil
}
return &SessionDescription{
Type: newSDPType(descValue.Get("type").String()),
Type: NewSDPType(descValue.Get("type").String()),
SDP: descValue.Get("sdp").String(),
}
}