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 | 657 | if (res.status == true) { |
| 658 | 658 | alert('canplayCallback ----------- ' + playTimes) |
| 659 | 659 | CodingEditer.playCoding(); |
| 660 | - playTimes++ | |
| 661 | 660 | } |
| 662 | 661 | }, |
| 663 | 662 | onwaitingCallback: function(){ |
| ... | ... | @@ -665,9 +664,12 @@ |
| 665 | 664 | alert('onwaitingCallback ----------- ' + playTimes) |
| 666 | 665 | CodingEditer.audioTime = parseInt(player.elements.audioDom.currentTime*1000); |
| 667 | 666 | CodingEditer.pauseCode(); |
| 667 | + }else{ | |
| 668 | + playTimes++ | |
| 668 | 669 | } |
| 669 | 670 | }, |
| 670 | 671 | playCallback: function() { // 播放 |
| 672 | + alert('播放 ----------- ' + playTimes) | |
| 671 | 673 | if (playTimes != 0) { |
| 672 | 674 | alert('playCallback ----------- ' + playTimes) |
| 673 | 675 | CodingEditer.playCoding(); | ... | ... |
src/js/audioPlayer/jQuery.AudioPlayer.js
| ... | ... | @@ -250,6 +250,7 @@ |
| 250 | 250 | _this.elements.totalTime.html(minutes + ":" + (10 <= duration ? duration : "0" + duration)); |
| 251 | 251 | |
| 252 | 252 | if(typeof _this.options.canplayCallback == 'function'){ |
| 253 | + alert('canplayCallback') | |
| 253 | 254 | _this.options.canplayCallback({'status': true}); |
| 254 | 255 | } |
| 255 | 256 | } | ... | ... |