File tree Expand file tree Collapse file tree 18 files changed +61
-51
lines changed
data-channels-detach-create Expand file tree Collapse file tree 18 files changed +61
-51
lines changed Original file line number Diff line number Diff line change 88 "github.com/pions/webrtc"
99 "github.com/pions/webrtc/examples/util"
1010 "github.com/pions/webrtc/pkg/datachannel"
11- "github.com/pions/webrtc/pkg/ice"
1211)
1312
1413func main () {
@@ -32,7 +31,7 @@ func main() {
3231
3332 // Set the handler for ICE connection state
3433 // This will notify you when the peer has connected/disconnected
35- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
34+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
3635 fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
3736 })
3837
Original file line number Diff line number Diff line change 77 "github.com/pions/webrtc"
88 "github.com/pions/webrtc/examples/util"
99 "github.com/pions/webrtc/pkg/datachannel"
10- "github.com/pions/webrtc/pkg/ice"
1110)
1211
1312func main () {
@@ -32,7 +31,7 @@ func main() {
3231
3332 // Set the handler for ICE connection state
3433 // This will notify you when the peer has connected/disconnected
35- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
34+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
3635 fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
3736 })
3837
Original file line number Diff line number Diff line change 77 "github.com/pions/datachannel"
88 "github.com/pions/webrtc"
99 "github.com/pions/webrtc/examples/util"
10- "github.com/pions/webrtc/pkg/ice"
1110)
1211
1312const messageSize = 15
@@ -39,7 +38,7 @@ func main() {
3938
4039 // Set the handler for ICE connection state
4140 // This will notify you when the peer has connected/disconnected
42- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
41+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
4342 fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
4443 })
4544
Original file line number Diff line number Diff line change 77 "github.com/pions/datachannel"
88 "github.com/pions/webrtc"
99 "github.com/pions/webrtc/examples/util"
10- "github.com/pions/webrtc/pkg/ice"
1110)
1211
1312const messageSize = 15
@@ -35,7 +34,7 @@ func main() {
3534
3635 // Set the handler for ICE connection state
3736 // This will notify you when the peer has connected/disconnected
38- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
37+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
3938 fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
4039 })
4140
Original file line number Diff line number Diff line change 77 "github.com/pions/webrtc"
88 "github.com/pions/webrtc/examples/util"
99 "github.com/pions/webrtc/pkg/datachannel"
10- "github.com/pions/webrtc/pkg/ice"
1110)
1211
1312func main () {
@@ -28,7 +27,7 @@ func main() {
2827
2928 // Set the handler for ICE connection state
3029 // This will notify you when the peer has connected/disconnected
31- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
30+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
3231 fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
3332 })
3433
Original file line number Diff line number Diff line change 99 "github.com/pions/webrtc"
1010 "github.com/pions/webrtc/examples/util"
1111 gst "github.com/pions/webrtc/examples/util/gstreamer-sink"
12- "github.com/pions/webrtc/pkg/ice"
1312)
1413
1514// gstreamerReceiveMain is launched in a goroutine because the main thread is needed
@@ -61,7 +60,7 @@ func gstreamerReceiveMain() {
6160
6261 // Set the handler for ICE connection state
6362 // This will notify you when the peer has connected/disconnected
64- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
63+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
6564 fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
6665 })
6766
Original file line number Diff line number Diff line change 66 "github.com/pions/webrtc"
77 "github.com/pions/webrtc/examples/util"
88 gst "github.com/pions/webrtc/examples/util/gstreamer-src"
9- "github.com/pions/webrtc/pkg/ice"
109)
1110
1211func main () {
@@ -31,7 +30,7 @@ func main() {
3130
3231 // Set the handler for ICE connection state
3332 // This will notify you when the peer has connected/disconnected
34- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
33+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
3534 fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
3635 })
3736
Original file line number Diff line number Diff line change 77 "github.com/pions/webrtc"
88 "github.com/pions/webrtc/examples/util"
99 gst "github.com/pions/webrtc/examples/util/gstreamer-src"
10- "github.com/pions/webrtc/pkg/ice"
1110)
1211
1312func main () {
@@ -36,7 +35,7 @@ func main() {
3635
3736 // Set the handler for ICE connection state
3837 // This will notify you when the peer has connected/disconnected
39- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
38+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
4039 fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
4140 })
4241
Original file line number Diff line number Diff line change 77 janus "github.com/notedit/janus-go"
88 "github.com/pions/webrtc"
99 "github.com/pions/webrtc/examples/util"
10- "github.com/pions/webrtc/pkg/ice"
1110 "github.com/pions/webrtc/pkg/media/ivfwriter"
1211)
1312
@@ -52,7 +51,7 @@ func main() {
5251 peerConnection , err := webrtc .NewPeerConnection (config )
5352 util .Check (err )
5453
55- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
54+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
5655 fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
5756 })
5857
Original file line number Diff line number Diff line change 88 "github.com/pions/webrtc"
99 "github.com/pions/webrtc/examples/util"
1010 gst "github.com/pions/webrtc/examples/util/gstreamer-src"
11- "github.com/pions/webrtc/pkg/ice"
1211)
1312
1413func watchHandle (handle * janus.Handle ) {
@@ -52,7 +51,7 @@ func main() {
5251 peerConnection , err := webrtc .NewPeerConnection (config )
5352 util .Check (err )
5453
55- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
54+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
5655 fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
5756 })
5857
You can’t perform that action at this time.
0 commit comments