UNPKG

voicebot-react-native-expo

Version:

This is a voicebot-react-native package of Kipps AI voice bot for React Native Expo

22 lines 963 B
import * as React from 'react'; /** @public */ export interface AllowMediaPlaybackProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { label?: string; } /** * The `StartMediaButton` component is only visible when the browser blocks media playback. This is due to some browser implemented autoplay policies. * To start media playback, the user must perform a user-initiated event such as clicking this button. * As soon as media playback starts, the button hides itself again. * * @example * ```tsx * <LiveKitRoom> * <StartMediaButton label="Click to allow media playback" /> * </LiveKitRoom> * ``` * * @see Autoplay policy on MDN web docs: {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Best_practices#autoplay_policy} * @public */ export declare const StartMediaButton: (props: AllowMediaPlaybackProps & React.RefAttributes<HTMLButtonElement>) => React.ReactNode; //# sourceMappingURL=StartMediaButton.d.ts.map