mirror of
https://github.com/koush/scrypted.git
synced 2026-08-02 19:31:34 +01:00
rebroadcast: reset activity timer on video only
This commit is contained in:
4
plugins/prebuffer-mixin/package-lock.json
generated
4
plugins/prebuffer-mixin/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user