rebroadcast: respect audio config in rtsp mode

This commit is contained in:
Koushik Dutta
2022-03-11 15:04:45 -08:00
parent dc6649c65b
commit db7cc5a67a
3 changed files with 6 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.196",
"version": "0.1.199",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.196",
"version": "0.1.199",
"license": "Apache-2.0",
"dependencies": {
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.196",
"version": "0.1.199",
"description": "Rebroadcast and Prebuffer for VideoCameras.",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -527,7 +527,9 @@ class PrebufferSession {
const parser = createRtspParser({
vcodec,
// the rtsp parser should always stream copy unless audio is soft muted.
acodec,
acodec: isUsingDefaultAudioConfig
? ['-acodec', 'copy']
: acodec,
});
this.sdp = parser.sdp;
rbo.parsers.rtsp = parser;