File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu
73
73
* [Pascal Benoit](https://github.com/pascal-ace)
74
74
* [Jin Gong](https://github.com/cgojin)
75
75
* [harkirat singh](https://github.com/hkirat)
76
+ * [oasangqi](https://github.com/oasangqi)
76
77
77
78
# ## License
78
79
MIT License - see [LICENSE](LICENSE) for full text
Original file line number Diff line number Diff line change @@ -84,12 +84,17 @@ func main() {
84
84
panic (err )
85
85
}
86
86
87
+ // Create channel that is blocked until ICE Gathering is complete
88
+ gatherComplete := webrtc .GatheringCompletePromise (peerConnection )
89
+
87
90
// Sets the LocalDescription, and starts our UDP listeners
88
91
err = peerConnection .SetLocalDescription (answer )
89
92
if err != nil {
90
93
panic (err )
91
94
}
92
95
96
+ <- gatherComplete
97
+
93
98
// Output the answer in base64 so we can paste it in browser
94
99
fmt .Println (signal .Encode (* peerConnection .LocalDescription ()))
95
100
You can’t perform that action at this time.
0 commit comments