Skip to content

Chrome with MT fixed and COEP/COOP server! #13

@radames

Description

@radames

Hi @antiboredom, amazing project!
It looks like the issue with ffmpeg wasm MT on Chrome was solved with the latest @ffmpeg/ffmpeg@0.12.6 it worth trying!

const isChrome = navigator.userAgent.match(/chrome|chromium|crios/i);
const baseURL = `https://unpkg.com/@ffmpeg/core${!isChrome ? "-mt" : ""}@0.12.2/dist/esm`;

BTW is you ever need to host static pages with COEP/COOP header HuggingFace Static SDK now support custom headers!!
https://huggingface.co/spaces/radames/OpenAI-CLIP-JavaScript

# README.md
custom_headers:
  cross-origin-embedder-policy: require-corp
  cross-origin-opener-policy: same-origin
  cross-origin-resource-policy: cross-origin

docs: https://huggingface.co/docs/hub/spaces-config-reference#:~:text=can%20be%20embedded.-,custom_headers,-%3A%20Dict%5Bstring
ps. I work there 🤦🏼

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions