desktop-audio-proxy
Version:
A comprehensive audio streaming solution for Tauri and Electron apps that bypasses CORS and WebKit codec issues
27 lines • 920 B
TypeScript
import { AudioProxyOptions, StreamInfo, Environment } from './types';
declare global {
interface Window {
__TAURI__?: {
tauri: {
convertFileSrc: (_filePath: string) => string;
invoke?: (_command: string, _args?: Record<string, unknown>) => Promise<unknown>;
};
};
electronAPI?: unknown;
}
}
export declare class AudioProxyClient {
private options;
private environment;
constructor(options?: AudioProxyOptions);
private detectEnvironment;
getEnvironment(): Environment;
isProxyAvailable(): Promise<boolean>;
canPlayUrl(url: string): Promise<StreamInfo>;
getPlayableUrl(url: string): Promise<string>;
private isLocalFile;
private handleLocalFile;
private delay;
}
export declare function createAudioClient(options?: AudioProxyOptions): AudioProxyClient;
//# sourceMappingURL=client.d.ts.map