Commit e7f0f0f82a332207ef1b19b20d0739996e708a26
1 parent
029ae92d
fix students file
Showing
2 changed files
with
5 additions
and
2 deletions
src/index.html
src/js/gbreplayer.js
| @@ -479,9 +479,9 @@ $(function(){ | @@ -479,9 +479,9 @@ $(function(){ | ||
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | GBCodePlayBack.records = coderecords; | 481 | GBCodePlayBack.records = coderecords; |
| 482 | - if(GBCodePlayBack.playTimes === 0){ | 482 | + if(GBCodePlayBack.playTimes === 0 && _role === 0){ |
| 483 | if(!isAndroid){ | 483 | if(!isAndroid){ |
| 484 | - player.play(); | 484 | + $.AudioPlayer.play(); |
| 485 | }else{ | 485 | }else{ |
| 486 | GBCodePlayBack.playTimes++ | 486 | GBCodePlayBack.playTimes++ |
| 487 | } | 487 | } |