- #get currently playing service reference
- self.prev_running_service = self.session.nav.getCurrentlyPlayingServiceReference()
- #stop actual played dvb-service
- self.session.nav.stopService()
+
+ self.paused_service = None
+ self.prev_running_service = None
+ if self.session.current_dialog:
+ if self.session.current_dialog.ALLOW_SUSPEND == Screen.SUSPEND_STOPS:
+ #get currently playing service reference
+ self.prev_running_service = self.session.nav.getCurrentlyPlayingServiceReference()
+ #stop actual played dvb-service
+ self.session.nav.stopService()
+ elif self.session.current_dialog.ALLOW_SUSPEND == Screen.SUSPEND_PAUSES:
+ self.paused_service = self.session.current_dialog
+ self.paused_service.pauseService()
+