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

  • Senior Member
  • 25 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

  • Senior Member
  • 25 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
  • 9,985 posts

+337
Excellent

Posted 11 December 2019 - 06:39

Bust3D

Please test


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


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

  • Senior Member
  • 25 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
  • 9,985 posts

+337
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.

 


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


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

  • PLi® Core member
  • 56,223 posts

+691
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

  • Senior Member
  • 25 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
  • 9,985 posts

+337
Excellent

Posted 11 December 2019 - 20:11

[MediaPlayer] do not show playlist


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


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

  • PLi® Core member
  • 68,508 posts

+1,733
Excellent

Posted 11 December 2019 - 20:53

Merged.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

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


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

  • Senior Member
  • 25 posts

0
Neutral

Posted 11 December 2019 - 22:00

Thanks :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users