bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio-test/container.jsx

28 lines
617 B
React
Raw Normal View History

2016-12-06 09:37:46 +08:00
import React, { Component, PropTypes } 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(() => {
const data = {
handlePlayAudioSample: () => {
const snd = new Audio('resources/sounds/audioSample.mp3');
snd.play();
},
};
return data;
}, AudioTestContainer);