| 1285 | self._ui.showOSDMessage(osdMessage, constants.WARNING_OSD_MESSAGES_LOOP_INTERVAL, OSDType=constants.OSD_ALERT, mood=messageMood) |
| 1286 | |
| 1287 | def __displayMessageOnOSD(self, warningName, warningFunction): |
| 1288 | if constants.OSD_WARNING_MESSAGE_DURATION > self._warnings[warningName]["displayedFor"]: |
| 1289 | warningFunction() |
| 1290 | self._warnings[warningName]["displayedFor"] += constants.WARNING_OSD_MESSAGES_LOOP_INTERVAL |
| 1291 | else: |
| 1292 | self._warnings[warningName]["displayedFor"] = 0 |
| 1293 | try: |
| 1294 | self._warnings[warningName]["timer"].stop() |
| 1295 | except: |
| 1296 | pass |
| 1297 | |
| 1298 | def __displayPausedMessagesOnOSD(self): |
| 1299 | if self._client.autoplayConditionsMet(): |