mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 16:57:39 -05:00
headings
This commit is contained in:
@@ -23,8 +23,8 @@ class MediaPlayer extends React.Component {
|
||||
isPlaying: false
|
||||
}
|
||||
}
|
||||
handlePause = () => { this.setState({isPlaying: false}); }
|
||||
handlePlay = () => { this.setState({isPlaying: true}); }
|
||||
handlePause = () => { this.setState({isPlaying: false}); this.props.onPlayPause(false); }
|
||||
handlePlay = () => { this.setState({isPlaying: true}); this.props.onPlayPause(true); }
|
||||
playPause = () => {const audio = this.audioRef.current.audioEl.current; if (this.state.isPlaying) {audio.pause();} else {audio.play();}}
|
||||
playSource(callUrl) {
|
||||
const audio = this.audioRef.current.audioEl.current;
|
||||
|
||||
Reference in New Issue
Block a user