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 8
8
"github.com/pions/webrtc"
9
9
"github.com/pions/webrtc/examples/util"
10
10
"github.com/pions/webrtc/pkg/datachannel"
11
- "github.com/pions/webrtc/pkg/ice"
12
11
)
13
12
14
13
func main () {
@@ -32,7 +31,7 @@ func main() {
32
31
33
32
// Set the handler for ICE connection state
34
33
// This will notify you when the peer has connected/disconnected
35
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
34
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
36
35
fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
37
36
})
38
37
Original file line number Diff line number Diff line change 7
7
"github.com/pions/webrtc"
8
8
"github.com/pions/webrtc/examples/util"
9
9
"github.com/pions/webrtc/pkg/datachannel"
10
- "github.com/pions/webrtc/pkg/ice"
11
10
)
12
11
13
12
func main () {
@@ -32,7 +31,7 @@ func main() {
32
31
33
32
// Set the handler for ICE connection state
34
33
// This will notify you when the peer has connected/disconnected
35
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
34
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
36
35
fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
37
36
})
38
37
Original file line number Diff line number Diff line change 7
7
"github.com/pions/datachannel"
8
8
"github.com/pions/webrtc"
9
9
"github.com/pions/webrtc/examples/util"
10
- "github.com/pions/webrtc/pkg/ice"
11
10
)
12
11
13
12
const messageSize = 15
@@ -39,7 +38,7 @@ func main() {
39
38
40
39
// Set the handler for ICE connection state
41
40
// This will notify you when the peer has connected/disconnected
42
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
41
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
43
42
fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
44
43
})
45
44
Original file line number Diff line number Diff line change 7
7
"github.com/pions/datachannel"
8
8
"github.com/pions/webrtc"
9
9
"github.com/pions/webrtc/examples/util"
10
- "github.com/pions/webrtc/pkg/ice"
11
10
)
12
11
13
12
const messageSize = 15
@@ -35,7 +34,7 @@ func main() {
35
34
36
35
// Set the handler for ICE connection state
37
36
// This will notify you when the peer has connected/disconnected
38
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
37
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
39
38
fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
40
39
})
41
40
Original file line number Diff line number Diff line change 7
7
"github.com/pions/webrtc"
8
8
"github.com/pions/webrtc/examples/util"
9
9
"github.com/pions/webrtc/pkg/datachannel"
10
- "github.com/pions/webrtc/pkg/ice"
11
10
)
12
11
13
12
func main () {
@@ -28,7 +27,7 @@ func main() {
28
27
29
28
// Set the handler for ICE connection state
30
29
// This will notify you when the peer has connected/disconnected
31
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
30
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
32
31
fmt .Printf ("ICE Connection State has changed: %s\n " , connectionState .String ())
33
32
})
34
33
Original file line number Diff line number Diff line change 9
9
"github.com/pions/webrtc"
10
10
"github.com/pions/webrtc/examples/util"
11
11
gst "github.com/pions/webrtc/examples/util/gstreamer-sink"
12
- "github.com/pions/webrtc/pkg/ice"
13
12
)
14
13
15
14
// gstreamerReceiveMain is launched in a goroutine because the main thread is needed
@@ -61,7 +60,7 @@ func gstreamerReceiveMain() {
61
60
62
61
// Set the handler for ICE connection state
63
62
// This will notify you when the peer has connected/disconnected
64
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
63
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
65
64
fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
66
65
})
67
66
Original file line number Diff line number Diff line change 6
6
"github.com/pions/webrtc"
7
7
"github.com/pions/webrtc/examples/util"
8
8
gst "github.com/pions/webrtc/examples/util/gstreamer-src"
9
- "github.com/pions/webrtc/pkg/ice"
10
9
)
11
10
12
11
func main () {
@@ -31,7 +30,7 @@ func main() {
31
30
32
31
// Set the handler for ICE connection state
33
32
// This will notify you when the peer has connected/disconnected
34
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
33
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
35
34
fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
36
35
})
37
36
Original file line number Diff line number Diff line change 7
7
"github.com/pions/webrtc"
8
8
"github.com/pions/webrtc/examples/util"
9
9
gst "github.com/pions/webrtc/examples/util/gstreamer-src"
10
- "github.com/pions/webrtc/pkg/ice"
11
10
)
12
11
13
12
func main () {
@@ -36,7 +35,7 @@ func main() {
36
35
37
36
// Set the handler for ICE connection state
38
37
// This will notify you when the peer has connected/disconnected
39
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
38
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
40
39
fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
41
40
})
42
41
Original file line number Diff line number Diff line change 7
7
janus "github.com/notedit/janus-go"
8
8
"github.com/pions/webrtc"
9
9
"github.com/pions/webrtc/examples/util"
10
- "github.com/pions/webrtc/pkg/ice"
11
10
"github.com/pions/webrtc/pkg/media/ivfwriter"
12
11
)
13
12
@@ -52,7 +51,7 @@ func main() {
52
51
peerConnection , err := webrtc .NewPeerConnection (config )
53
52
util .Check (err )
54
53
55
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
54
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
56
55
fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
57
56
})
58
57
Original file line number Diff line number Diff line change 8
8
"github.com/pions/webrtc"
9
9
"github.com/pions/webrtc/examples/util"
10
10
gst "github.com/pions/webrtc/examples/util/gstreamer-src"
11
- "github.com/pions/webrtc/pkg/ice"
12
11
)
13
12
14
13
func watchHandle (handle * janus.Handle ) {
@@ -52,7 +51,7 @@ func main() {
52
51
peerConnection , err := webrtc .NewPeerConnection (config )
53
52
util .Check (err )
54
53
55
- peerConnection .OnICEConnectionStateChange (func (connectionState ice. ConnectionState ) {
54
+ peerConnection .OnICEConnectionStateChange (func (connectionState webrtc. ICEConnectionState ) {
56
55
fmt .Printf ("Connection State has changed %s \n " , connectionState .String ())
57
56
})
58
57
You can’t perform that action at this time.
0 commit comments