Commit e708bd9cbe5065a4d4f58bf1899492f7a3c83488
1 parent
764e6ff3
add v
Showing
2 changed files
with
4 additions
and
1 deletions
src/gxb-ide/Dir.js
| @@ -657,7 +657,6 @@ | @@ -657,7 +657,6 @@ | ||
| 657 | if (res.status == true) { | 657 | if (res.status == true) { |
| 658 | alert('canplayCallback ----------- ' + playTimes) | 658 | alert('canplayCallback ----------- ' + playTimes) |
| 659 | CodingEditer.playCoding(); | 659 | CodingEditer.playCoding(); |
| 660 | - playTimes++ | ||
| 661 | } | 660 | } |
| 662 | }, | 661 | }, |
| 663 | onwaitingCallback: function(){ | 662 | onwaitingCallback: function(){ |
| @@ -665,9 +664,12 @@ | @@ -665,9 +664,12 @@ | ||
| 665 | alert('onwaitingCallback ----------- ' + playTimes) | 664 | alert('onwaitingCallback ----------- ' + playTimes) |
| 666 | CodingEditer.audioTime = parseInt(player.elements.audioDom.currentTime*1000); | 665 | CodingEditer.audioTime = parseInt(player.elements.audioDom.currentTime*1000); |
| 667 | CodingEditer.pauseCode(); | 666 | CodingEditer.pauseCode(); |
| 667 | + }else{ | ||
| 668 | + playTimes++ | ||
| 668 | } | 669 | } |
| 669 | }, | 670 | }, |
| 670 | playCallback: function() { // 播放 | 671 | playCallback: function() { // 播放 |
| 672 | + alert('播放 ----------- ' + playTimes) | ||
| 671 | if (playTimes != 0) { | 673 | if (playTimes != 0) { |
| 672 | alert('playCallback ----------- ' + playTimes) | 674 | alert('playCallback ----------- ' + playTimes) |
| 673 | CodingEditer.playCoding(); | 675 | CodingEditer.playCoding(); |
src/js/audioPlayer/jQuery.AudioPlayer.js
| @@ -250,6 +250,7 @@ | @@ -250,6 +250,7 @@ | ||
| 250 | _this.elements.totalTime.html(minutes + ":" + (10 <= duration ? duration : "0" + duration)); | 250 | _this.elements.totalTime.html(minutes + ":" + (10 <= duration ? duration : "0" + duration)); |
| 251 | 251 | ||
| 252 | if(typeof _this.options.canplayCallback == 'function'){ | 252 | if(typeof _this.options.canplayCallback == 'function'){ |
| 253 | + alert('canplayCallback') | ||
| 253 | _this.options.canplayCallback({'status': true}); | 254 | _this.options.canplayCallback({'status': true}); |
| 254 | } | 255 | } |
| 255 | } | 256 | } |