mirror of
https://github.com/koush/scrypted.git
synced 2026-02-17 12:12:16 +00:00
rebroadcast: fixup resolution detection
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.1.48",
|
||||
"version": "0.1.49",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/prebuffer-mixin",
|
||||
"version": "0.1.48",
|
||||
"version": "0.1.49",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@scrypted/common": "file:../../common",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/prebuffer-mixin",
|
||||
"version": "0.1.48",
|
||||
"version": "0.1.49",
|
||||
"description": "Rebroadcast and Prebuffer for VideoCameras.",
|
||||
"author": "Scrypted",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -284,6 +284,13 @@ class PrebufferMixin extends SettingsMixinDeviceBase<VideoCamera> implements Vid
|
||||
}
|
||||
}
|
||||
|
||||
if (mediaStreamOptions.video) {
|
||||
Object.assign(mediaStreamOptions.video, {
|
||||
width: parseInt(this.session.inputVideoResolution[2]),
|
||||
height: parseInt(this.session.inputVideoResolution[3]),
|
||||
})
|
||||
}
|
||||
|
||||
const ffmpegInput: FFMpegInput = {
|
||||
inputArguments: [
|
||||
'-f', container,
|
||||
|
||||
Reference in New Issue
Block a user