From 3a61d3aa3a2260d5b84b641b912b1023184df20a Mon Sep 17 00:00:00 2001 From: mooons <10822203+mooons@users.noreply.github.com> Date: Sun, 5 Dec 2021 03:56:27 -0800 Subject: [PATCH] Set WebRTC video codec H.264 `profile-level-id` to `42e01f` to be compatible with Firefox clients (#109) --- server/internal/webrtc/webrtc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/webrtc/webrtc.go b/server/internal/webrtc/webrtc.go index a97eb6fb..78978ab0 100644 --- a/server/internal/webrtc/webrtc.go +++ b/server/internal/webrtc/webrtc.go @@ -315,7 +315,7 @@ func (manager *WebRTCManager) createTrack(codecName string) (*webrtc.TrackLocalS codec = webrtc.RTPCodecParameters{RTPCodecCapability: webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeVP9, ClockRate: 90000, Channels: 0, SDPFmtpLine: "", RTCPFeedback: fb}, PayloadType: 98} id = "video" case "H264": - codec = webrtc.RTPCodecParameters{RTPCodecCapability: webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeH264, ClockRate: 90000, Channels: 0, SDPFmtpLine: "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f", RTCPFeedback: fb}, PayloadType: 102} + codec = webrtc.RTPCodecParameters{RTPCodecCapability: webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeH264, ClockRate: 90000, Channels: 0, SDPFmtpLine: "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f", RTCPFeedback: fb}, PayloadType: 102} id = "video" case "Opus": codec = webrtc.RTPCodecParameters{RTPCodecCapability: webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeOpus, ClockRate: 48000, Channels: 2, SDPFmtpLine: "", RTCPFeedback: fb}, PayloadType: 111}