UNPKG

rtaro-ui

Version:
25 lines (23 loc) 656 B
import AtComponent from './base' export interface AtAudioProps extends AtComponent { src: string setComponentInstance?: (innerAudioContext: any) => void onCanplay?: (e: any) => void onEnded?: (e: any) => void onPause?: (e: any) => void onPlay?: (e: any) => void onSeeked?: (e: any) => void onSeeking?: (e: any) => void onTimeUpdate?: (e: any) => void onWaiting?: (e: any) => void onStop?: (e: any) => void onError?: (e: any) => void autoplay?: boolean className?: string customStyle?: React.CSSProperties } export interface AtAudioState { playing: boolean currentTime: number duration: number }