bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/audio-test/container.jsx
2017-06-02 19:25:02 +00:00

25 lines
536 B
JavaScript

import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import AudioTest from './component';
class AudioTestContainer extends Component {
constructor(props) {
super(props);
}
render() {
return (
<AudioTest {...this.props}>
{this.props.children}
</AudioTest>
);
}
}
export default createContainer(() => ({
handlePlayAudioSample: () => {
const snd = new Audio('resources/sounds/audioSample.mp3');
snd.play();
},
}), AudioTestContainer);