rebroadcast: reset activity timer on video only

This commit is contained in:
Koushik Dutta
2026-07-31 08:09:37 -07:00
parent 1c983f55bf
commit 9bbc77f27e
3 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.10.68",
"version": "0.10.69",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/prebuffer-mixin",
"version": "0.10.68",
"version": "0.10.69",
"license": "Apache-2.0",
"dependencies": {
"@koush/werift-src": "file:../../external/werift",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.10.68",
"version": "0.10.69",
"description": "Video Stream Rebroadcast, Prebuffer, and Management Plugin for Scrypted.",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -86,8 +86,6 @@ a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdelta
if (!isActive)
break;
resetActivityTimer?.();
if (rtmpPacket.codec === 'audio') {
if (options?.audioSoftMuted)
continue;
@@ -130,6 +128,8 @@ a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdelta
if (flv.codecId !== VideoCodecId.H264)
throw new Error('unsupported rtmp video codec ' + flv.codecId);
resetActivityTimer?.();
const prefix = Buffer.alloc(2);
prefix[0] = RTSP_FRAME_MAGIC;
prefix[1] = 0;