Index: trunk/cortado/src/com/fluendo/player/Cortado.java |
— | — | @@ -221,7 +221,7 @@ |
222 | 222 | statusHeight = getIntParam("statusHeight", 12); |
223 | 223 | autoPlay = getBoolParam("autoPlay", true); |
224 | 224 | showStatus = getEnumParam("showStatus", showStatusVals, "auto"); |
225 | | - hideTimeout = getIntParam("hideTimeout", 0); |
| 225 | + hideTimeout = getIntParam("hideTimeout", 3); |
226 | 226 | showSpeaker = getBoolParam("showSpeaker", true); |
227 | 227 | keepAspect = getBoolParam("keepAspect", true); |
228 | 228 | bufferSize = getIntParam("bufferSize", 200); |
— | — | @@ -230,6 +230,9 @@ |
231 | 231 | debug = getIntParam("debug", 3); |
232 | 232 | userId = getStringParam("userId", null); |
233 | 233 | password = getStringParam("password", null); |
| 234 | + |
| 235 | + // if audio-only don't hide the status bar |
| 236 | + if(!video) hideTimeout = Integer.MAX_VALUE; |
234 | 237 | |
235 | 238 | Debug.level = debug; |
236 | 239 | Debug.log(Debug.INFO, "build info: " + configure.buildInfo); |
— | — | @@ -434,10 +437,13 @@ |
435 | 438 | |
436 | 439 | /* don't make invisible when the mouse pointer is inside status area */ |
437 | 440 | if (inStatus && !b) { |
438 | | - return; |
| 441 | + b = true; |
439 | 442 | } |
440 | 443 | |
441 | | - Debug.log (Debug.INFO, "Status: "+ (b ? "Show" : "Hide")); |
| 444 | + if(b != status.isVisible()) |
| 445 | + Debug.log (Debug.INFO, "Status: "+ (b ? "Show" : "Hide")); |
| 446 | + |
| 447 | + if(b) hideCounter = hideTimeout; |
442 | 448 | status.setVisible(b); |
443 | 449 | repaint(); |
444 | 450 | } |
— | — | @@ -458,7 +464,7 @@ |
459 | 465 | } |
460 | 466 | |
461 | 467 | public void mouseExited(MouseEvent e) { |
462 | | - setStatusVisible(false, false); |
| 468 | + inStatus = false; |
463 | 469 | } |
464 | 470 | |
465 | 471 | public void mousePressed(MouseEvent e) { |
— | — | @@ -490,9 +496,9 @@ |
491 | 497 | setStatusVisible(true, false); |
492 | 498 | e.translatePoint(0, -y); |
493 | 499 | ((MouseMotionListener) status).mouseDragged(e); |
494 | | - } else { |
| 500 | + } /*else { |
495 | 501 | setStatusVisible(false, false); |
496 | | - } |
| 502 | + }*/ |
497 | 503 | } |
498 | 504 | |
499 | 505 | public void mouseMoved(MouseEvent e) { |
— | — | @@ -501,9 +507,10 @@ |
502 | 508 | setStatusVisible(true, false); |
503 | 509 | e.translatePoint(0, -y); |
504 | 510 | ((MouseMotionListener) status).mouseMoved(e); |
505 | | - } else { |
| 511 | + } /*else { |
506 | 512 | setStatusVisible(false, false); |
507 | | - } |
| 513 | + }*/ |
| 514 | + setStatusVisible(true, false); |
508 | 515 | } |
509 | 516 | |
510 | 517 | public void handleMessage(Message msg) { |