homekit: Fix nre

This commit is contained in:
Koushik Dutta
2022-05-18 18:42:14 -07:00
parent b07b1366f5
commit 8da8eed71a
3 changed files with 4 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/homekit",
"version": "1.0.4",
"version": "1.0.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/homekit",
"version": "1.0.4",
"version": "1.0.5",
"dependencies": {
"@koush/qrcode-terminal": "^0.12.0",
"@koush/werift-src": "file:../../external/werift",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/homekit",
"version": "1.0.4",
"version": "1.0.5",
"description": "HomeKit Plugin for Scrypted",
"scripts": {
"prepublishOnly": "NODE_ENV=production scrypted-webpack",

View File

@@ -169,7 +169,7 @@ export async function startCameraStreamFfmpeg(device: ScryptedDevice & VideoCame
tool: mso?.tool,
rtpSender,
});
const h264Info = ffmpegInput.mediaStreamOptions?.video?.h264Info;
const h264Info = ffmpegInput.mediaStreamOptions?.video?.h264Info || {};
const oddity = h264Info.fuab || h264Info.stapb || h264Info.mtap16 || h264Info.mtap32 || h264Info.sei;
if (rtpSender === 'Default' && oddity) {
console.warn('H264 oddities are reported in the stream. Using FFmpeg.');