adjusted js import paths

tooltip for remote URL
This commit is contained in:
Alexander G. Morano
2025-03-02 02:31:33 -05:00
parent 027b20be25
commit 75bed3c2dc
9 changed files with 32 additions and 16 deletions
+3
View File
@@ -46,6 +46,9 @@ Please consider sponsoring me if you enjoy the results of my work, code or docum
## UPDATES
**2025/03/02** @1.0.2:
* adjusted js import paths
**2025/03/01** @1.0.1:
* pywinctl for monitor capture
+7 -3
View File
@@ -75,9 +75,13 @@ Capture frames from a desktop monitor. Supports batch processing, allowing multi
d = super().INPUT_TYPES()
return deep_merge({
"optional": {
"MONITOR": (cls.MONITOR, {"default": cls.MONITOR[0], "choice": "list of system monitor devices", "tooltip": "list of system monitor devices"}),
"XY": ("VEC2INT", {"default": (0, 0), "mij": 0, "label": ["TOP", "LEFT"], "tooltip": "Top, Left position"}),
"WH": ("VEC2INT", {"default": (0, 0), "mij": 0, "label": ["WIDTH", "HEIGHT"], "tooltip": "Width and Height"})
"MONITOR": (cls.MONITOR, {"default": cls.MONITOR[0],
"choice": "list of system monitor devices",
"tooltip": "list of system monitor devices"}),
"XY": ("VEC2INT", {"default": (0, 0), "mij": 0, "label": ["TOP", "LEFT"],
"tooltip": "Top, Left position"}),
"WH": ("VEC2INT", {"default": (0, 0), "mij": 0, "label": ["WIDTH", "HEIGHT"],
"tooltip": "Width and Height"})
}
}, d)
+3 -1
View File
@@ -36,12 +36,14 @@ Capture frames from a URL. Supports batch processing, allowing multiple frames t
return deep_merge({
"optional": {
"URL": ("STRING", {"default": "", "dynamicPrompts": False})
"URL": ("STRING", {"default": "", "dynamicPrompts": False,
"tooltip":"A remote URL to stream"})
}
}, d)
def run(self, **kw) -> RGBAMaskType:
# need to see if we have a device...
# http://63.142.190.238:6106/mjpg/video.mjpg
if self.device is None:
self.device = MediaStreamBase()
+8 -4
View File
@@ -132,10 +132,14 @@ Capture frames from a web camera. Supports batch processing, allowing multiple f
return deep_merge({
"optional": {
"CAMERA": (cls.CAMERAS, {"default": cls.CAMERAS[0], "tooltip": "The camera from the auto-scanned list"}),
"ZOOM": ("INT", {"default": 0, "min": 0, "max": 100, "step": 1, "tooltip": "Camera zoom"}),
"FOCUS": ("INT", {"default": 0, "min": 0, "max": 100, "step": 1, "tooltip": "Camera focus"}),
"EXPOSURE": ("INT", {"default": 50, "min": 0, "max": 100, "step": 1, "tooltip": "Camera exposure"})
"CAMERA": (cls.CAMERAS, {"default": cls.CAMERAS[0],
"tooltip": "The camera from the auto-scanned list"}),
"ZOOM": ("INT", {"default": 0, "min": 0, "max": 100, "step": 1,
"tooltip": "Camera zoom"}),
"FOCUS": ("INT", {"default": 0, "min": 0, "max": 100, "step": 1,
"tooltip": "Camera focus"}),
"EXPOSURE": ("INT", {"default": 50, "min": 0, "max": 100, "step": 1,
"tooltip": "Camera exposure"})
}
}, d)
+6 -3
View File
@@ -277,9 +277,12 @@ Capture frames from a dekstop window. Supports batch processing, allowing multip
return deep_merge({
"optional": {
"WINDOW": (keys, {"default": default, "tooltip": "Window to capture"}),
"XY": ("VEC2INT", {"default": (0, 0), "mij": 0, "label": ["TOP", "LEFT"], "tooltip": "Top, Left position"}),
"WH": ("VEC2INT", {"default": (0, 0), "mij": 0, "label": ["WIDTH", "HEIGHT"], "tooltip": "Width and Height"}),
"CLIENT": ("BOOLEAN", {"default": False, "tooltip": "Only capture the client area -- no scrollbars or menus"}),
"XY": ("VEC2INT", {"default": (0, 0), "mij": 0, "label": ["TOP", "LEFT"],
"tooltip": "Top, Left position"}),
"WH": ("VEC2INT", {"default": (0, 0), "mij": 0, "label": ["WIDTH", "HEIGHT"],
"tooltip": "Width and Height"}),
"CLIENT": ("BOOLEAN", {"default": False,
"tooltip": "Only capture the client area -- no scrollbars or menus"}),
}
}, d)
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "jovi_capture"
description = "Capture Webcamera and URL media streams as ComfyUI images"
version = "1.0.1"
version = "1.0.2"
license = { file = "LICENSE" }
readme = "README.md"
authors = [{ name = "Alexander G. Morano", email = "amorano@gmail.com" }]
+1 -1
View File
@@ -3,7 +3,7 @@
* Project: jov_capture
*/
import { app } from "../../../scripts/app.js";
import { app } from "../../scripts/app.js";
import { api_get } from './util_jov.js'
const _id = "CAMERA (JOV_CAPTURE)";
+1 -1
View File
@@ -3,7 +3,7 @@
* Project: jov_capture
*/
import { app } from "../../../scripts/app.js";
import { app } from "../../scripts/app.js";
import { api_get } from './util_jov.js'
const _id = "WINDOW (JOV_CAPTURE)";
+2 -2
View File
@@ -3,8 +3,8 @@
*/
import { app } from "../../../scripts/app.js"
import { $el } from "../../../scripts/ui.js"
import { app } from "../../scripts/app.js"
import { $el } from "../../scripts/ui.js"
import { widgetToInput, widgetToWidget, domInnerValueChange } from './util_jov.js'
/** @import { IWidget, LGraphCanvas } from '../../types/litegraph/litegraph.d.ts' */