bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/component.jsx
2017-10-23 10:41:09 -02:00

29 lines
539 B
JavaScript

import React, { Component } from 'react';
import PropTypes from 'prop-types';
const propTypes = {
init: PropTypes.func.isRequired,
};
export default class Audio extends Component {
constructor(props) {
super(props);
this.init = props.init.bind(this);
}
componentDidMount() {
this.init();
}
render() {
return (
<audio id="remote-media" autoPlay="autoplay">
<track kind="captions" /> {/* These captions are brought to you by eslint */}
</audio>
);
}
}
Audio.propTypes = propTypes;