dev_cs_new
hjm 6 years ago
parent b37ecec3e5
commit f9cb02bf96

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

Loading…
Cancel
Save