@scrypted/amcrest
Advanced tools
Comparing version
{ | ||
"name": "@scrypted/amcrest", | ||
"version": "0.0.126", | ||
"version": "0.0.127", | ||
"description": "Amcrest Plugin for Scrypted", | ||
@@ -5,0 +5,0 @@ "author": "Scrypted", |
@@ -329,2 +329,10 @@ import { ffmpegLogInitialOutput } from '@scrypted/common/src/media-helpers'; | ||
}, | ||
{ | ||
key: 'httpChannel', | ||
title: 'Channel Number Override', | ||
subgroup: 'Advanced', | ||
description: "The channel number to use for snapshots and video. E.g., 1, 2, etc.", | ||
placeholder: '1', | ||
value: this.storage.getItem('httpChannel'), | ||
}, | ||
...await super.getUrlSettings(), | ||
@@ -338,2 +346,5 @@ ] | ||
getHttpChannel() { | ||
return this.storage.getItem('httpChannel') || this.getRtspChannel(); | ||
} | ||
@@ -384,2 +395,3 @@ createRtspMediaStreamOptions(url: string, index: number) { | ||
const channel = parseInt(this.getHttpChannel()) || 1; | ||
for (let i = 0; i < vsos.length; i++) { | ||
@@ -386,0 +398,0 @@ const vso = vsos[i]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
494400
0.2%1566
0.84%