-
Notifications
You must be signed in to change notification settings - Fork 442
[fix] Enable AUDIO_RECORD widget in both LiteGraph and Vue nodes modes #6094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
5174cd5
04d4467
849dc35
dc0c8b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -253,7 +253,7 @@ app.registerExtension({ | |
| audio.setAttribute('name', 'media') | ||
| const audioUIWidget: DOMWidget<HTMLAudioElement, string> = | ||
| node.addDOMWidget(inputName, /* name=*/ 'audioUI', audio) | ||
| audioUIWidget.options.canvasOnly = true | ||
| audioUIWidget.options.canvasOnly = false | ||
|
|
||
| let mediaRecorder: MediaRecorder | null = null | ||
| let isRecording = false | ||
|
|
@@ -376,10 +376,12 @@ app.registerExtension({ | |
| mediaRecorder.stop() | ||
| } | ||
| }, | ||
| { serialize: false, canvasOnly: true } | ||
| { serialize: false, canvasOnly: false } | ||
| ) | ||
|
|
||
| recordWidget.label = t('g.startRecording') | ||
| // Override the type for Vue rendering while keeping 'button' for LiteGraph | ||
Myestery marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| recordWidget.type = 'audiorecord' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [architecture] medium Priority Issue: Type override hack using recordWidget.type = 'audiorecord' after widget creation |
||
|
|
||
| const originalOnRemoved = node.onRemoved | ||
| node.onRemoved = function () { | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,6 @@ import type { | |
| IStringWidget | ||
| } from '@/lib/litegraph/src/types/widgets' | ||
| import { useSettingStore } from '@/platform/settings/settingStore' | ||
| import { useAudioRecordWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useAudioRecordWidget' | ||
| import { useBooleanWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget' | ||
| import { useChartWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useChartWidget' | ||
| import { useColorWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useColorWidget' | ||
|
|
@@ -305,6 +304,5 @@ export const ComfyWidgets: Record<string, ComfyWidgetConstructor> = { | |
| CHART: transformWidgetConstructorV2ToV1(useChartWidget()), | ||
| GALLERIA: transformWidgetConstructorV2ToV1(useGalleriaWidget()), | ||
| SELECTBUTTON: transformWidgetConstructorV2ToV1(useSelectButtonWidget()), | ||
| TEXTAREA: transformWidgetConstructorV2ToV1(useTextareaWidget()), | ||
| AUDIO_RECORD: transformWidgetConstructorV2ToV1(useAudioRecordWidget()) | ||
| TEXTAREA: transformWidgetConstructorV2ToV1(useTextareaWidget()) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [architecture] high Priority Issue: Removing formal AUDIO_RECORD widget registration entirely from ComfyWidgets |
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.