dev_cs_new
hjm 6 years ago
parent b37ecec3e5
commit f9cb02bf96

@ -16,15 +16,12 @@ class Clappr extends Component{
}
componentDidMount() {
return;
const source = this.props.source || "http://your.video/here.mp4"
const { id, type } = this.props
const _id = `#_player${id}`
return;
if (!window['Clappr'] && window['ClapprLoading'] == true) {
setTimeout(() => {
this.componentDidMount()
@ -91,6 +88,7 @@ class Clappr extends Component{
const _id = `_player${id}`
return(
<React.Fragment>
{/* https://github.com/CookPete/react-player/issues/686 */}
<ReactPlayer url={source} playing={false} controls={true} width={400} height={ type == 'mp3' ? 55 : 290}/>
{/* <style>{`
.playback_rate {

Loading…
Cancel
Save