bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/component.jsx
2017-04-20 15:57:35 -04:00

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>
);
}
}