Index: trunk/phase3/js2/mwEmbed/libAddMedia/mvFirefogg.js |
— | — | @@ -334,6 +334,12 @@ |
335 | 335 | if( _this.show_preview == true){ |
336 | 336 | $j('#fogg_preview_canvas').show(); |
337 | 337 | }else{ |
| 338 | + //update icon: |
| 339 | + $j(this).children('.ui-icon') |
| 340 | + .removeClass('ui-icon-triangle-1-s') |
| 341 | + .addClass('ui-icon-triangle-1-e'); |
| 342 | + //update text: |
| 343 | + $j(this).children('.btnText').text( gM('fogg-preview') ); |
338 | 344 | $j('#fogg_preview_canvas').hide(); |
339 | 345 | } |
340 | 346 | //apply preview binding: |
— | — | @@ -387,7 +393,7 @@ |
388 | 394 | ctx.drawImage(v, 0, 0, canvas.width, canvas.height); |
389 | 395 | } |
390 | 396 | } |
391 | | - var previewI=null; |
| 397 | + var previewI=null; |
392 | 398 | function preview() { |
393 | 399 | //initialize the video if not setup already: |
394 | 400 | var v = $j('#fogg_preview_vid').get(0); |
— | — | @@ -408,8 +414,11 @@ |
409 | 415 | var previewI = setInterval(function(){ |
410 | 416 | if (_this.fogg.status() != "encoding"){ |
411 | 417 | clearInterval(previewI); |
412 | | - } |
413 | | - v.load(); |
| 418 | + _this.show_preview == false; |
| 419 | + } |
| 420 | + if (_this.show_preview == true) { |
| 421 | + v.load(); |
| 422 | + } |
414 | 423 | }, 1000); |
415 | 424 | } |
416 | 425 | } |