mediasfu-reactnative-expo
Version:
mediasfu-reactnative-expo – Expo-managed React Native WebRTC SDK for video conferencing, webinars, live streaming, broadcast, screen sharing, whiteboard, chat, recording, live subtitles, translation, and AI agent rooms on iOS, Android, and web. Prebuilt r
19 lines (18 loc) • 563 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>;