| 10 | } |
| 11 | |
| 12 | setPath (path, target, name) |
| 13 | { |
| 14 | if(target==this.props.target && ((this.props.filter+"").trim().indexOf(name)!=-1 || (this.props.filter.trim()+"").length==0)) |
| 15 | { |
| 16 | //console.log("path: "+path+"?reset="+this.state.counter); |
| 17 | this.state.counter+=1; |
| 18 | document.getElementById("audio_source_"+this.props.id).src = path+"?reset="+this.state.counter; |
| 19 | document.getElementById("audio_"+this.props.id).load(); //call this to just preload the audio without playing |
| 20 | document.getElementById("audio_"+this.props.id).play(); //call this to play the song right away |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | edit() |
| 25 | { |