Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Vincent Polidoro Polidoro

🎯
Focusing
View GitHub Profile
@Polidoro
Polidoro / AudioPlayer.jsx
Last active Sep 25, 2016 — forked from gaearon/AudioPlayer.jsx
React <audio> wrapper
View AudioPlayer.jsx
/** @jsx React.DOM */
var AudioPlayer = React.createClass({
propTypes: {
source: React.PropTypes.string.isRequired,
isPlaying: React.PropTypes.bool.isRequired,
defaultTime: React.PropTypes.number,
onProgress: React.PropTypes.func.isRequired,
onTimeUpdate: React.PropTypes.func.isRequired,
onEnd: React.PropTypes.func.isRequired
You can’t perform that action at this time.