discourse/app/assets/javascripts
Blake Erickson b53df4d884
FIX: Videos not uploading due to thumbnail generation error (#28493)
If we don't get a `videoWidth` back for a video don't try and generate a
thumbnail for it.

Also as part of this change I switched getImageData, the function
throwing the error, to use video.videoWidth instead of canvas.width
because it's very likely we were setting canvas.width too early before
the width could be read. Now that we are reading the value inside of the
setTimeout hopefully we will actually have a width. Just incase we don't
detect a width we will now exit early instead of throwing an error.

We only need to check for `0` and not null because the value is an
integer and will always return a 0 if it can't be read. https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoWidth

See https://meta.discourse.org/t/322363
2024-08-22 13:35:18 -06:00
..
admin UX: Add title token for What's New admin page (#28476) 2024-08-22 14:36:32 +10:00
custom-proxy Build(deps-dev): Bump glob from 10.4.2 to 10.4.3 (#27751) 2024-07-08 08:40:31 +08:00
deprecation-silencer DEV: Silence whitespace-eating-comment warnings (#27129) 2024-05-22 16:21:51 +02:00
dialog-holder Build(deps): Bump a11y-dialog from 8.0.4 to 8.1.0 (#28418) 2024-08-20 12:00:41 +02:00
discourse FIX: Videos not uploading due to thumbnail generation error (#28493) 2024-08-22 13:35:18 -06:00
discourse-common FIX: Lost outer context in #each block in hbr (#28461) 2024-08-21 17:11:36 +02:00
discourse-hbr DEV: Convert discourse-hbr to a regular package (#26562) 2024-04-08 20:00:34 +01:00
discourse-i18n UX: respect current locale on topic map views date format (#28199) 2024-08-05 13:18:48 -03:00
discourse-markdown-it UX: do not check for dimensions in video filename (#28349) 2024-08-15 11:59:13 -04:00
discourse-plugins Build(deps-dev): Bump ember-cli from 5.10.0 to 5.11.0 (#28449) 2024-08-21 00:54:06 +02:00
discourse-widget-hbs Build(deps-dev): Bump ember-cli from 5.10.0 to 5.11.0 (#28449) 2024-08-21 00:54:06 +02:00
docs
ember-addons
ember-cli-progress-ci PERF: Improve production JS build in low-memory environments (#26849) 2024-05-02 11:43:59 +01:00
ember-production-deprecations DEV: Update ember-cli-deprecation-workflow from 2.2.0 to 3.0.1 (#28226) 2024-08-07 17:59:42 +02:00
float-kit Build(deps-dev): Bump ember-cli from 5.10.0 to 5.11.0 (#28449) 2024-08-21 00:54:06 +02:00
locales FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00
pretty-text Build(deps-dev): Bump ember-cli from 5.10.0 to 5.11.0 (#28449) 2024-08-21 00:54:06 +02:00
select-kit DEV: fixup select-kit pluginApiIdentifiers typo (#28487) 2024-08-22 16:36:24 +01:00
theme-transpiler Build(deps): Bump terser from 5.31.5 to 5.31.6 (#28358) 2024-08-14 00:57:46 +02:00
truth-helpers Build(deps): Bump ember-auto-import from 2.7.3 to 2.7.4 (#27615) 2024-06-26 01:35:06 +02:00
.npmrc
handlebars-shim.js
polyfills.js
run-patch-package
service-worker.js.erb DEV: Drop workbox dependency (#26735) 2024-04-24 10:19:12 +01:00