Commit 60684058639cafd421b9eda7f2023ae5e633428f

Authored by ykxie
1 parent 514041ab

test

src/gxb-ide/Dir.js
... ... @@ -619,19 +619,20 @@
619 619  
620 620 initTrigger(coderecords)
621 621  
  622 + // if(isAndroid){
  623 + // playTimes++
  624 + // }
  625 +
622 626 AudioPlayer(audioUrl)
623 627  
624 628 var role = getQuery('role');
625 629 if (role == 0) {
626   - if (playTimes === 0) {
627   - // 请求玩立刻执行
628   - if(!isAndroid){
629   - // alert(isAndroid)
630   - $.AudioPlayer.play()
631   - }else{
632   - playTimes++
633   - }
634   - }
  630 + $.AudioPlayer.play()
  631 + // if(!isAndroid){
  632 + // $.AudioPlayer.play()
  633 + // }else{
  634 + // playTimes++
  635 + // }
635 636 }else{
636 637 CodingEditer.playCoding();
637 638 }
... ... @@ -666,20 +667,22 @@
666 667 debuggers: false,
667 668 allowSeek: false,
668 669 canplayCallback: function(res){
669   - if (res.status == true && playTimes === 0 && !isAndroid) {
  670 + if (res.status == true && playTimes === 0) {
670 671 CodingEditer.playCoding();
671 672 playTimes++
672 673 // alert('canplayCallback可以播放 ----------- ' + playTimes)
673 674 }
  675 + alert('canplayCallback可以播放 ----------- ' + playTimes)
674 676 },
675 677 onwaitingCallback: function(){
676   - // console.log('onwaitingCallback ----------- ' + playTimes)
  678 + alert('onwaitingCallback ----------- ' + playTimes)
677 679 },
678 680 playCallback: function() { // 播放
679 681 if (playTimes != 0) {
680 682 CodingEditer.playCoding();
681   - // alert('playCoding可以播放 ----------- ' + playTimes)
  683 + alert('playCoding可以播放 ----------- ' + playTimes)
682 684 }
  685 + alert('playCoding可以播放 ----------- ' + playTimes)
683 686 // CodingEditer.playCoding();
684 687 },
685 688 pauseCallback: function() { // 暂停
... ...
src/gxb-ide/Iterm.js
... ... @@ -38,7 +38,7 @@
38 38 // var languageId = _this.options.languageId;
39 39 var languageId = _this.options.languageId || Dir.languageid;
40 40 var role = getQuery('role');
41   -
  41 + alert("HHHHHHH")
42 42  
43 43  
44 44 // 判断是否录制走不同的逻辑
... ...
src/js/player.js
1   -alert('==============')
2 1 $(function(){
3 2 var _languageid = getQuery('languageid');
4 3 var _userId = getQuery('userId');
... ... @@ -16,15 +15,16 @@ $(function(){
16 15  
17 16 // 编译控制台
18 17 // var iterm = new Iterm({
19   - // userId: _userId
  18 + // userId: _userId,
  19 + // languageId: _languageid
20 20 // });
21 21  
22   - alert('==============')
  22 + // alert('==============')
23 23  
24 24 var title = decodeURIComponent(getQuery('title'));
25 25  
26 26 $('.m-title').html(title);
27   - alert('=============='+title)
  27 + // alert('=============='+title)
28 28  
29 29  
30 30 $('#resultoutput').append(title)
... ...