homekit: fix bug where bufsize was crazy small

This commit is contained in:
Koushik Dutta
2022-01-28 18:23:27 -08:00
parent 0dfcbcb963
commit 60674853b8
3 changed files with 4 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/homekit",
"version": "0.0.177",
"version": "0.0.178",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/homekit",
"version": "0.0.177",
"version": "0.0.178",
"dependencies": {
"hap-nodejs": "file:../../external/HAP-NodeJS",
"lodash": "^4.17.21",

View File

@@ -40,5 +40,5 @@
"@types/qrcode": "^1.4.1",
"@types/url-parse": "^1.4.3"
},
"version": "0.0.177"
"version": "0.0.178"
}

View File

@@ -336,7 +336,7 @@ addSupportedType({
'-flags', '+global_header',
'-ar', `${(request as StartStreamRequest).audio.sample_rate}k`,
'-b:a', `${(request as StartStreamRequest).audio.max_bit_rate}k`,
"-bufsize", `${(request as StartStreamRequest).audio.max_bit_rate * 4}`,
"-bufsize", `${(request as StartStreamRequest).audio.max_bit_rate * 4}k`,
'-ac', `${(request as StartStreamRequest).audio.channel}`,
"-payload_type",
(request as StartStreamRequest).audio.pt.toString(),