From 89aaee5876902d26cbc3bb888e951bafe910a01a Mon Sep 17 00:00:00 2001 From: Dillon Bussert Date: Mon, 24 May 2021 17:28:10 -0400 Subject: [PATCH] Add VLC SAP message support --- lib/grammar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/grammar.js b/lib/grammar.js index d8178e8..fb276fb 100644 --- a/lib/grammar.js +++ b/lib/grammar.js @@ -45,9 +45,9 @@ var grammar = module.exports = { // m=video 51744 RTP/AVP 126 97 98 34 31 // NB: special - pushes to session // TODO: rtp/fmtp should be filtered by the payloads found here? - reg: /^(\w*) (\d*) ([\w/]*)(?: (.*))?/, - names: ['type', 'port', 'protocol', 'payloads'], - format: '%s %d %s %s' + reg: /^(\w*) (\d*)(?:\/(\d*))? ([\w/]*)(?: (.*))?/, + names: ['type', 'port', 'portCount', 'protocol', 'payloads'], + format: '%s %d %d %s %s' }], a: [ {