mirror of
https://github.com/koush/scrypted.git
synced 2026-05-04 21:30:30 +01:00
homekit: fix opus audio on remote connections https://github.com/koush/scrypted/issues/398#issuecomment-1272459980
This commit is contained in:
@@ -9,3 +9,4 @@ dist/*.js
|
||||
dist/*.txt
|
||||
HAP-NodeJS
|
||||
.gitmodules
|
||||
tsconfig.json
|
||||
|
||||
2
plugins/homekit/.vscode/settings.json
vendored
2
plugins/homekit/.vscode/settings.json
vendored
@@ -1,4 +1,4 @@
|
||||
|
||||
{
|
||||
"scrypted.debugHost": "koushik-mac"
|
||||
"scrypted.debugHost": "127.0.0.1"
|
||||
}
|
||||
4
plugins/homekit/package-lock.json
generated
4
plugins/homekit/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/homekit",
|
||||
"version": "1.1.45",
|
||||
"version": "1.1.46",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/homekit",
|
||||
"version": "1.1.45",
|
||||
"version": "1.1.46",
|
||||
"dependencies": {
|
||||
"@koush/werift-src": "file:../../external/werift",
|
||||
"check-disk-space": "^3.3.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/homekit",
|
||||
"version": "1.1.45",
|
||||
"version": "1.1.46",
|
||||
"description": "HomeKit Plugin for Scrypted",
|
||||
"scripts": {
|
||||
"scrypted-setup-project": "scrypted-setup-project",
|
||||
|
||||
@@ -208,7 +208,7 @@ export async function startCameraStreamFfmpeg(device: ScryptedDevice & VideoCame
|
||||
// by default opus encodes with a packet time of 20. however, homekit may request another value,
|
||||
// which we will respect by simply outputing frames of that duration, rather than packing
|
||||
// 20 ms frames to accomodate.
|
||||
opusFramesPerPacket = 1;
|
||||
// the opus repacketizer will pass through those N frame packets as is.
|
||||
|
||||
audioArgs.push(
|
||||
'-acodec', ...(requestedOpus ?
|
||||
|
||||
Reference in New Issue
Block a user