mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 09:30:06 +00:00
Fix VHS advanced preview html video type (#1186)
* Fix VHS advanced preview html video type * nit
This commit is contained in:
@@ -67,6 +67,8 @@ export class ResultItemImpl {
|
||||
|
||||
/**
|
||||
* VHS advanced preview URL. `/viewvideo` endpoint is provided by VHS node.
|
||||
*
|
||||
* `/viewvideo` always returns a webm file.
|
||||
*/
|
||||
get vhsAdvancedPreviewUrl(): string {
|
||||
return api.apiURL('/viewvideo?' + this.urlParams)
|
||||
@@ -108,8 +110,12 @@ export class ResultItemImpl {
|
||||
return this.filename.endsWith('.gif')
|
||||
}
|
||||
|
||||
get isWebp(): boolean {
|
||||
return this.filename.endsWith('.webp')
|
||||
}
|
||||
|
||||
get isImage(): boolean {
|
||||
return this.mediaType === 'images' || this.isGif
|
||||
return this.mediaType === 'images' || this.isGif || this.isWebp
|
||||
}
|
||||
|
||||
get supportsPreview(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user