28 lines
534 B
JavaScript
28 lines
534 B
JavaScript
import React, { Component } from 'react';
|
|
import { init } from './service';
|
|
import { showModal } from '../app/service';
|
|
import AudioModalContainer from './audio-modal/container';
|
|
|
|
export default class Audio extends Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
|
|
componentWillMount() {
|
|
if (this.props.showJoinAudio) {
|
|
showModal(<AudioModalContainer />);
|
|
}
|
|
}
|
|
|
|
componentDidMount() {
|
|
init();
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<audio id="remote-media" autoPlay="autoplay">
|
|
</audio>
|
|
);
|
|
}
|
|
}
|