🎥 Make videos programmatically with React
Decode media filenames in timeline labels
Jonny Burger2aaa9d8851c6
diff --git a/packages/core/src/get-asset-file-name.ts b/packages/core/src/get-asset-file-name.tsindex 07618ad6c8..41045ee260 100644--- a/packages/core/src/get-asset-file-name.ts+++ b/packages/core/src/get-asset-file-name.ts@@ -15,5 +15,10 @@ export const getAssetDisplayName = (filename: string): string => {.split('/').map((s) => s.split('\\')).flat(1);- return splitted[splitted.length - 1];+ const name = splitted[splitted.length - 1];+ try {+ return decodeURIComponent(name);+ } catch {+ return name;+ }};