mirror of
https://github.com/pion/webrtc.git
synced 2025-10-30 02:12:03 +08:00
Expose NewSDPType
Allows a user to easily marshal a string to SDPType
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user