adjusted js import paths
tooltip for remote URL
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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)";
|
||||
|
||||
@@ -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' */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user