@vosjs/studio-core 0.42.1 → 0.42.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6957,7 +6957,9 @@ var SETUP = `async (ctx) => {
6957
6957
  // exactly as it was; preview/scrub never sets the flag.
6958
6958
  const makeWcProvider = async (src) => {
6959
6959
  if (!window.VideoDecoder) return null
6960
- const MB = await import('https://esm.sh/mediabunny@1.55.7?target=es2022')
6960
+ // The page says where mediabunny loads from (the engine template's
6961
+ // window.__vos__.modules, a mirror or esm.sh); esm.sh when it says nothing.
6962
+ const MB = await import((window.__vos__ && window.__vos__.modules && window.__vos__.modules.mediabunny) || 'https://esm.sh/mediabunny@1.55.7?target=es2022')
6961
6963
  const wcBlob = ns.videoBlobs && ns.videoBlobs.get(src)
6962
6964
  const input = new MB.Input({
6963
6965
  formats: MB.ALL_FORMATS,