z-astro-web-audio-stream
Version:
Astro integration for Web Audio Stream with separated download/storage optimization and automatic worklet deployment
31 lines • 867 B
TypeScript
import type { AstroIntegration } from 'astro';
export interface WebAudioStreamOptions {
/**
* Path where the audio worklet will be served from
* @default '/audio-worklet-processor.js'
*/
workletPath?: string;
/**
* Public directory path relative to project root
* @default 'public'
*/
publicDir?: string;
/**
* Whether to automatically copy the worklet file during build
* @default true
*/
autoDeploy?: boolean;
/**
* Log deployment information
* @default true
*/
verbose?: boolean;
}
/**
* Astro integration for Web Audio Stream
*
* Automatically deploys the iOS Safari-safe audio worklet processor
* to your public directory during build.
*/
export default function webAudioStream(options?: WebAudioStreamOptions): AstroIntegration;
//# sourceMappingURL=index.d.ts.map