Jump to content


Photo

Media Player- on pause and screensaver


  • Please log in to reply
29 replies to this topic

Re: Media Player- on pause and screensaver #21 Bust3D

  • Member
  • 23 posts

0
Neutral

Posted 10 December 2019 - 21:17

With OK the screensaver is gone and comes back the 2 side panel and the video stays paused so no audio and no video and i have to press once pause or play to continue.

So OK is not the way to fix this issue.

 

I have the feeling that nobody test this issue ... i checked the code and there is a function where we should implement a check.

	def pauseEntry(self):
		self.pauseService()
		if self.seekstate == self.SEEK_STATE_PAUSE:
			self.show()
		else:
			self.hideAndInfoBar()

and there is another class what is included 

 

 InfoBarScreenSaver

    def __onExecEnd(self):
        if self.screensaver.shown:
            self.screensaver.hide()
            eActionMap.getInstance().unbindAction('', self.keypressScreenSaver)
        self.screenSaverTimer.stop()

we should inplement to check if the screensaver is active to able to act if active to 1st remove the main screen from media player witch shows on this request self.show() on plugin by pressing pause.

And i don't know how to make this on python but with time i will figure it out :P

 

Kind regards.


Edited by Bust3D, 10 December 2019 - 21:18.


Re: Media Player- on pause and screensaver #22 Bust3D

  • Member
  • 23 posts

0
Neutral

Posted 10 December 2019 - 21:56

Anybody can help me out how can i use in python the classes ?

 

the pause function form media player should check if screensaver is active or not ... something like this

	def pauseEntry(self):
		from Screens.InfoBarGenerics import InfoBarScreenSaver
		if InfoBarScreenSaver.screensaver.shown:
			self.pauseService()
			self.hideAndInfoBar()
		else:
			self.pauseService()
			if self.seekstate == self.SEEK_STATE_PAUSE:
				self.show()
			else:
				self.hideAndInfoBar()

but this code doesn't work :)

 

Regards.



Re: Media Player- on pause and screensaver #23 Dimitrij

  • PLi® Core member
  • 6,703 posts

+218
Excellent

Posted 11 December 2019 - 06:39

Bust3D

Please test

Attached Files


Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: Media Player- on pause and screensaver #24 Bust3D

  • Member
  • 23 posts

0
Neutral

Posted 11 December 2019 - 08:32

Not working ... GREENSCREEN and restart enigma.

 

And as i saw you didn't modified on pauseEntry ... there is the problem because 1st line from this function toggle play and pause and if stat pause then show you the two panel screen.

And if the Screensaver after 5 minutes comes the two side panel is switch to last picture from played media, and there is the problem because maybe the plugin fail to handle the state.

But there is a dirty fix for this witch i will post it here after work.

 

Regards.



Re: Media Player- on pause and screensaver #25 Dimitrij

  • PLi® Core member
  • 6,703 posts

+218
Excellent

Posted 11 December 2019 - 08:40

Not working ... GREENSCREEN and restart enigma.

 

And as i saw you didn't modified on pauseEntry ... there is the problem because 1st line from this function toggle play and pause and if stat pause then show you the two panel screen.

And if the Screensaver after 5 minutes comes the two side panel is switch to last picture from played media, and there is the problem because maybe the plugin fail to handle the state.

But there is a dirty fix for this witch i will post it here after work.

 

Regards.

 

Attached Files


Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: Media Player- on pause and screensaver #26 littlesat

  • PLi® Core member
  • 50,027 posts

+549
Excellent

Posted 11 December 2019 - 08:59

Thanks Dimitrij for jumping in ;)


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Media Player- on pause and screensaver #27 Bust3D

  • Member
  • 23 posts

0
Neutral

Posted 11 December 2019 - 19:25

@Dimitrij thanks.

Now it work how it suppose to be :)

 

Issue fixed.

And me learned some python :)

 

PS. please who competent, update in trunk or whatever Repo are you using :P

 

Kind Regards. :)  :lol:


Edited by Bust3D, 11 December 2019 - 19:27.


Re: Media Player- on pause and screensaver #28 Dimitrij

  • PLi® Core member
  • 6,703 posts

+218
Excellent

Posted 11 December 2019 - 20:11

[MediaPlayer] do not show playlist


Lunix3-4K/VU+solo4k(thanks guys to gisclub.tv)


Re: Media Player- on pause and screensaver #29 WanWizard

  • Forum Moderator
    PLi® Core member
  • 50,037 posts

+899
Excellent

Posted 11 December 2019 - 20:53

Merged.


Currently in use: VU+Duo 4K (2xFBC S2), Amiko Viper T2C (T2), SAB Alpha Triple HD (S2+T2), Zgemma H3.T2C (T/C), Zgemma H6 (fallback), VU+Zero (fallback)

Many answers to your question can be found in our new and improved wiki.

note: I do not provide support via PM !

 


Re: Media Player- on pause and screensaver #30 Bust3D

  • Member
  • 23 posts

0
Neutral

Posted 11 December 2019 - 22:00

Thanks :)






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users