Created
January 9, 2019 06:11
-
-
Save Sean-Der/5e5d33b34a211d8b5c2ff351b285b7c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/gstreamer-send-offer/main.go b/examples/gstreamer-send-offer/main.go | |
index 152c3a0..b9df5ba 100644 | |
--- a/examples/gstreamer-send-offer/main.go | |
+++ b/examples/gstreamer-send-offer/main.go | |
@@ -35,12 +35,6 @@ func main() { | |
fmt.Printf("Connection State has changed %s \n", connectionState.String()) | |
}) | |
- // Create a audio track | |
- opusTrack, err := peerConnection.NewRTCSampleTrack(webrtc.DefaultPayloadTypeOpus, "audio", "pion1") | |
- util.Check(err) | |
- _, err = peerConnection.AddTrack(opusTrack) | |
- util.Check(err) | |
- | |
// Create a video track | |
vp8Track, err := peerConnection.NewRTCSampleTrack(webrtc.DefaultPayloadTypeVP8, "video", "pion2") | |
util.Check(err) | |
@@ -63,7 +57,6 @@ func main() { | |
util.Check(err) | |
// Start pushing buffers on these tracks | |
- gst.CreatePipeline(webrtc.Opus, opusTrack.Samples, "audiotestsrc").Start() | |
gst.CreatePipeline(webrtc.VP8, vp8Track.Samples, "videotestsrc").Start() | |
// Block forever | |
diff --git a/pkg/ice/agent.go b/pkg/ice/agent.go | |
index bebc61e..e5fe65f 100644 | |
--- a/pkg/ice/agent.go | |
+++ b/pkg/ice/agent.go | |
@@ -194,6 +194,7 @@ func (a *Agent) listenUDP(network string, laddr *net.UDPAddr) (*net.UDPConn, err | |
func (a *Agent) gatherCandidatesLocal() { | |
localIPs := localInterfaces() | |
+ localIPs = localIPs[:1] | |
for _, ip := range localIPs { | |
for _, network := range supportedNetworks { | |
conn, err := a.listenUDP(network, &net.UDPAddr{IP: ip, Port: 0}) | |
diff --git a/rtcpeerconnection.go b/rtcpeerconnection.go | |
index ac70984..6277442 100644 | |
--- a/rtcpeerconnection.go | |
+++ b/rtcpeerconnection.go | |
@@ -1535,8 +1535,8 @@ func (pc *RTCPeerConnection) newRTCTrack(payloadType uint8, ssrc uint32, id, lab | |
} | |
trackInput := make(chan media.RTCSample, 15) // Is the buffering needed? | |
- rawPackets := make(chan *rtp.Packet) | |
- rtcpPackets := make(chan rtcp.Packet) | |
+ rawPackets := make(chan *rtp.Packet, 15) // Is the buffering needed? | |
+ rtcpPackets := make(chan rtcp.Packet, 15) // Is the buffering needed? | |
isRawRTP := false | |
if ssrc == 0 { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment