@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Type Alias MediaCrossOrigin

    MediaCrossOrigin: "anonymous" | "use-credentials"

    CORS setting for the media element.

    Maps to the crossorigin attribute on <video> / <audio>.

    • 'anonymous' — send a CORS request without credentials
    • 'use-credentials' — send a CORS request with credentials

    Setting this to 'anonymous' (the default) is required for the automatic poster-frame capture to work on cross-origin videos, because the canvas becomes "tainted" otherwise.