mirror of
https://github.com/koush/scrypted.git
synced 2026-02-08 16:29:57 +00:00
homekit: fix audio cuts
This commit is contained in:
4
plugins/homekit/package-lock.json
generated
4
plugins/homekit/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/homekit",
|
||||
"version": "1.1.93",
|
||||
"version": "1.1.94",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/homekit",
|
||||
"version": "1.1.93",
|
||||
"version": "1.1.94",
|
||||
"dependencies": {
|
||||
"@koush/werift-src": "file:../../external/werift",
|
||||
"check-disk-space": "^3.3.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/homekit",
|
||||
"version": "1.1.93",
|
||||
"version": "1.1.94",
|
||||
"description": "HomeKit Plugin for Scrypted",
|
||||
"scripts": {
|
||||
"scrypted-setup-project": "scrypted-setup-project",
|
||||
|
||||
@@ -138,7 +138,7 @@ export function createCameraStreamSender(console: Console, config: Config, sende
|
||||
// audio will work so long as the rtp timestamps are created properly: which is a construct of the sample rate
|
||||
// HAP requests, and the packet time is respected,
|
||||
// opus 48khz will work just fine.
|
||||
rtp.header.timestamp = (firstTimestamp + packetCount * 180 * audioIntervalScale) % 0xFFFFFFFF;
|
||||
rtp.header.timestamp = (firstTimestamp + packetCount * 160 * audioIntervalScale) % 0xFFFFFFFF;
|
||||
sendPacket(rtp);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user