// Type definitions for react-audio-player 0.11 // Project: https://github.com/justinmc/react-audio-player // Definitions by: Daniel Gil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; export type Preload = '' | 'none' | 'metadata' | 'auto'; export interface ReactAudioPlayerProps { autoPlay?: boolean; children?: React.ReactNode; className?: string; controls?: boolean; controlsList?: string; crossOrigin?: string; id?: string; listenInterval?: number; loop?: boolean; muted?: boolean; onAbort?: (event: React.SyntheticEvent) => void; onCanPlay?: (event: React.SyntheticEvent) => void; onCanPlayThrough?: (event: React.SyntheticEvent) => void; onEnded?: (event: React.SyntheticEvent) => void; onError?: (event: React.SyntheticEvent) => void; onListen?: (event: React.SyntheticEvent) => void; onPause?: (event: React.SyntheticEvent) => void; onPlay?: (event: React.SyntheticEvent) => void; onSeeked?: (event: React.SyntheticEvent) => void; onVolumeChanged?: (event: React.SyntheticEvent) => void; onLoadedMetadata?: (event: React.SyntheticEvent) => void; preload?: Preload; src?: string; style?: React.CSSProperties; title?: string; volume?: number; } export default class ReactAudioPlayer extends React.Component { audioEl: HTMLAudioElement; clearListenTrack(): void; setListenTrack(): void; updateVolume(volume: number): void; }