mediasfu-reactjs
Version:
mediasfu-reactjs – React 18/19 WebRTC SDK for video conferencing, webinars, broadcasts, live streaming, chat, recording, whiteboard, and AI agents. Plug-in prebuilt rooms or build fully custom UIs.
19 lines • 604 B
TypeScript
export interface SoundPlayerOptions {
soundUrl: string;
}
export type SoundPlayerType = (options: SoundPlayerOptions) => void | Promise<void>;
/**
* Plays a sound from a given URL.
*
* @param {SoundPlayerOptions} options - The options for the sound player.
* @param {string} options.soundUrl - The URL of the sound to play.
*
* @returns {void | Promise<void>}
*
* @example
* ```typescript
* SoundPlayer({ soundUrl: 'https://example.com/sound.mp3' });
* ```
*/
export declare const SoundPlayer: ({ soundUrl }: SoundPlayerOptions) => Promise<void>;
//# sourceMappingURL=SoundPlayer.d.ts.map