Update helpers.go

more tplink ipcams
This commit is contained in:
awatuna
2023-08-07 06:25:16 +08:00
committed by GitHub
parent 4baa3f5588
commit b2f9ad7efb
+2
View File
@@ -39,6 +39,8 @@ func UnmarshalSDP(rawSDP []byte) ([]*core.Media, error) {
// Fix invalid media type (errSDPInvalidValue) caused by
// some TP-LINK IP camera, e.g. TL-IPC44GW
rawSDP = bytes.ReplaceAll(rawSDP, []byte("m=application/TP-LINK "), []byte("m=application "))
// more tplink ipcams
rawSDP = bytes.ReplaceAll(rawSDP, []byte("m=application/tp-link "), []byte("m=application "))
if err == io.EOF {
rawSDP = append(rawSDP, '\n')