Commit 13489a3f2fe842f74df888d84f6826280f0e969b
1 parent
c74c8eb2
test
Showing
1 changed file
with
12 additions
and
12 deletions
src/gxb-ide/Dir.js
| ... | ... | @@ -620,19 +620,19 @@ |
| 620 | 620 | initTrigger(coderecords) |
| 621 | 621 | |
| 622 | 622 | // fix js执行顺序playTimes没有值 |
| 623 | - if(isAndroid){ | |
| 624 | - playTimes++ | |
| 625 | - } | |
| 623 | + // if(isAndroid){ | |
| 624 | + // playTimes++ | |
| 625 | + // } | |
| 626 | 626 | |
| 627 | 627 | AudioPlayer(audioUrl) |
| 628 | 628 | |
| 629 | 629 | var role = getQuery('role'); |
| 630 | 630 | if (role == 0) { |
| 631 | - if(!isAndroid){ | |
| 631 | + // if(!isAndroid){ | |
| 632 | 632 | $.AudioPlayer.play() |
| 633 | - }else{ | |
| 634 | - playTimes++ | |
| 635 | - } | |
| 633 | + // }else{ | |
| 634 | + // playTimes++ | |
| 635 | + // } | |
| 636 | 636 | }else{ |
| 637 | 637 | CodingEditer.playCoding(); |
| 638 | 638 | } |
| ... | ... | @@ -667,22 +667,22 @@ |
| 667 | 667 | debuggers: false, |
| 668 | 668 | allowSeek: false, |
| 669 | 669 | canplayCallback: function(res){ |
| 670 | - if (res.status == true && playTimes === 0 && !isAndroid) { | |
| 670 | + if (res.status == true && playTimes === 0) { | |
| 671 | 671 | CodingEditer.playCoding(); |
| 672 | 672 | playTimes++ |
| 673 | - // alert('canplay !isAndroid ----------- ' + playTimes) | |
| 673 | + alert('canplay !isAndroid ----------- ' + playTimes) | |
| 674 | 674 | } |
| 675 | - // alert('canplayCallback可以播放 ----------- ' + playTimes) | |
| 675 | + alert('canplayCallback可以播放 ----------- ' + playTimes) | |
| 676 | 676 | }, |
| 677 | 677 | onwaitingCallback: function(){ |
| 678 | - // alert('onwaitingCallback ----------- ' + playTimes) | |
| 678 | + alert('onwaitingCallback ----------- ' + playTimes) | |
| 679 | 679 | }, |
| 680 | 680 | playCallback: function() { // 播放 |
| 681 | 681 | if (playTimes != 0) { |
| 682 | 682 | CodingEditer.playCoding(); |
| 683 | 683 | // alert('playCoding可以播放 ----------- ' + playTimes) |
| 684 | 684 | } |
| 685 | - // alert('playCoding可以播放 ----------- ' + playTimes) | |
| 685 | + alert('playCoding可以播放 ----------- ' + playTimes) | |
| 686 | 686 | }, |
| 687 | 687 | pauseCallback: function() { // 暂停 |
| 688 | 688 | CodingEditer.audioTime = parseInt(player.elements.audioDom.currentTime*1000); | ... | ... |