mirror of
https://github.com/koush/scrypted.git
synced 2026-02-11 01:32:02 +00:00
onvif: relax backchannel search to accept whitespace
This commit is contained in:
@@ -52,7 +52,7 @@ interface CodecMatch {
|
||||
channels: string;
|
||||
}
|
||||
|
||||
const codecRegex = /a=rtpmap:(\d+) (.*?)\/(\d+)/g
|
||||
const codecRegex = /a=rtpmap:\s*(\d+) (.*?)\/(\d+)/g
|
||||
function* parseCodecs(audioSection: string): Generator<CodecMatch> {
|
||||
for (const match of audioSection.matchAll(codecRegex)) {
|
||||
const [_, payloadType, sdpName, sampleRate, _skip, channels] = match;
|
||||
|
||||
Reference in New Issue
Block a user