Skip to content

Commit

Permalink
Call player.load() when loading files
Browse files Browse the repository at this point in the history
  • Loading branch information
webmiraclepro committed Apr 10, 2017
1 parent a54040a commit 6b281a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/players/FilePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export default class FilePlayer extends Base {
}
load (url) {
this.player.src = url
if (this.props.playing) {
this.player.load()
}
}
play () {
this.player.play()
Expand Down

0 comments on commit 6b281a3

Please sign in to comment.