Created
December 27, 2020 17:37
-
-
Save Sean-Der/5f703d80dd1061cc8a4d8b3ddc4a8fff 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/rtp-forwarder/main.go b/examples/rtp-forwarder/main.go | |
index e16ef6e..51eb82f 100644 | |
--- a/examples/rtp-forwarder/main.go | |
+++ b/examples/rtp-forwarder/main.go | |
@@ -25,9 +25,9 @@ func main() { | |
m := webrtc.MediaEngine{} | |
// Setup the codecs you want to use. | |
- // We'll use a VP8 and Opus but you can also define your own | |
+ // We'll use a H264 and Opus but you can also define your own | |
if err := m.RegisterCodec(webrtc.RTPCodecParameters{ | |
- RTPCodecCapability: webrtc.RTPCodecCapability{MimeType: "video/VP8", ClockRate: 90000, Channels: 0, SDPFmtpLine: "", RTCPFeedback: nil}, | |
+ RTPCodecCapability: webrtc.RTPCodecCapability{MimeType: "video/H264", ClockRate: 90000, Channels: 0, SDPFmtpLine: "", RTCPFeedback: nil}, | |
PayloadType: 96, | |
}, webrtc.RTPCodecTypeVideo); err != nil { | |
panic(err) | |
diff --git a/examples/rtp-forwarder/rtp-forwarder.sdp b/examples/rtp-forwarder/rtp-forwarder.sdp | |
index 757f2e6..9a37caf 100644 | |
--- a/examples/rtp-forwarder/rtp-forwarder.sdp | |
+++ b/examples/rtp-forwarder/rtp-forwarder.sdp | |
@@ -5,5 +5,5 @@ c=IN IP4 127.0.0.1 | |
t=0 0 | |
m=audio 4000 RTP/AVP 111 | |
a=rtpmap:111 OPUS/48000/2 | |
-m=video 4002 RTP/AVP 96 | |
-a=rtpmap:96 VP8/90000 | |
\ No newline at end of file | |
+m=video 4002 RTP/AVP 102 | |
+a=rtpmap:102 H264/90000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment