Skip to content

Commit

Permalink
remove SDPType
Browse files Browse the repository at this point in the history
  • Loading branch information
palage4a committed Jun 14, 2021
1 parent 4045aab commit 6dee311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions jsep.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
package tdproto

type SDPType string

const (
AnswerType SDPType = "answer"
OfferType SDPType = "offer"
)

type JSEP struct {
SDP string `json:"sdp"`
Type SDPType `json:"type"`
SDP string `json:"sdp"`
Type string `json:"type"`
}
2 changes: 1 addition & 1 deletion server_call_sdp.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tdproto

func NewServerCallSdp(jid JID, uid,sdp string, sdpType SDPType) (r ServerCallSdp) {
func NewServerCallSdp(jid JID, uid, sdpType, sdp string) (r ServerCallSdp) {
r.Name = r.GetName()
r.Params.Jid = jid
r.Params.JSEP.Type = sdpType
Expand Down

0 comments on commit 6dee311

Please sign in to comment.