MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2004-10-24, 11:23   #11 (permalink)
Anonymous
Guest
 
Posts: n/a


Default

Hi hibernators,

frodo asked
Quote:
1. Does it work with the following recording types:
- daily
-weekly
-mon-fri
- everytime on this channel
- everytime on any channel
or only with the manual & once recordings???
And of course frodo knew this could be an issue since neither start time for these recordings is updated in the TVdatabase nor will there be entrys for each recording. I thought the TVDatabase was updated with an entry for each recording according to the tvguide, but sadly that is not the case.

OK, this means that daily, weekly, mon-fri, everytime on this channel and everytime on any channel won't work at present.
I will of cource look into this and try to fix it.

/ fred
  Reply With Quote
Old 2004-10-24, 12:15   #12 (permalink)
Retired Team Member
 
Join Date: Apr 2004
Age: 34
Posts: 822
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

i was thinking,

Could this be a seperate app ?
This way it will also work when the PC is running but MP is not.
Your program could then start MP and start the recording.

I did not try your plugin yet, so if I'm talking dumb I'm sorry
__________________
MrMario64 is offline   Reply With Quote
Old 2004-10-24, 13:01   #13 (permalink)
Anonymous
Guest
 
Posts: n/a


Default

@MrMario
Well, my plugin depends on receiving messages sent inside MP so I think it would be hard to simply make it a separate program.
I think the best and most versatile way to implement this would be to extract the whole TVrecording stuff from MP and put it in a separate windows service. This would of course result in major refactoring of the TV section of MP and make it a back end/front end solution. (which I think would be very nice)

An other possible solution would be to do it the other way around. I can't estimate the amount of work to this or if it is even doable at all.
What do you MP devs think of this:
Since MP is quite modular and uses messages for GUI interactions would it be possible to lift the GUI part out of MP to a separate front end application and make the rest a windows service back end?

/ Fred
  Reply With Quote
Old 2004-10-24, 15:46   #14 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 773
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by fred
@samuel
I've not tried it with build .11 yet but I think it should work.
You aren't using both the shutdown feature of then plugin and the Windows inbuilt are you?
Check the MediaPortal.log to see if the shutdown feature is activated or not at the time your system shuts down.
Quote:
2004-10-18 01:48:59 PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUITVHome
2004-10-18 01:48:59 Recorder.StartViewing:0 channelVHS tvon:False timeshift:False
2004-10-18 01:49:01 window:MediaPortal.GUI.TV.GUITVHome deinit
2004-10-18 01:49:01 PowerScheduler: Shutdown timer activated, automatic shutdown in 3 minutes.
Thanks for the reply. Nope, I'm not using the windows inbuilt and your plugin at the same time. Here's the relevant excerpt from my log file:

..............................
24/10/2004 10:48:55 PM PowerScheduler: Settings loaded - wakeup 3, shutdown 10, mode Hibernate
24/10/2004 10:48:55 PM PowerScheduler: Initiated.
24/10/2004 10:48:55 PM initialize skin
24/10/2004 10:48:55 PM load calibration1280x1024.xml
24/10/2004 10:48:56 PM PowerScheduler: Shutdown timer activated, automatic shutdown in 10 minutes
24/10/2004 10:48:56 PM window:MediaPortal.GUI.Home.HomeWindow init
24/10/2004 10:48:56 PM skin initalized
24/10/2004 10:48:56 PM DX9 size: 1280x1024
24/10/2004 10:48:56 PM video ram left:112640 KByte
24/10/2004 10:48:56 PM Start MediaPortal
.................
24/10/2004 11:02:17 PM window:MediaPortal.GUI.TV.GUITVHome init
24/10/2004 11:02:17 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUITVHome
24/10/2004 11:02:17 PM Recorder.StartViewing:0 channel:Network TEN tvon:False timeshift:False
24/10/2004 11:02:19 PM Recorder: Stop recording on channel:Network TEN capture card:1
24/10/2004 11:02:19 PM PowerScheduler: Rescan recordings - cause OnRecordingsChanged()
24/10/2004 11:02:19 PM Card:1 stop recording
24/10/2004 11:02:19 PM Recorder.StartViewing:0 channel:Network TEN tvon:False timeshift:False
24/10/2004 11:02:19 PM Card:1 stop timeshifting
24/10/2004 11:02:25 PM window:MediaPortal.GUI.TV.GUITVHome deinit
24/10/2004 11:02:25 PM window:MediaPortal.GUI.TV.GUIRecordedTV init
24/10/2004 11:02:25 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUIRecordedTV
24/10/2004 11:02:26 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUITVHome
24/10/2004 11:02:26 PM Recorder.StartViewing:0 channel:Network TEN tvon:False timeshift:False
24/10/2004 11:02:27 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUIRecordedTV
24/10/2004 11:02:35 PM window:MediaPortal.Dialogs.GUIDialogSelect2 init
24/10/2004 11:02:37 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.Dialogs.GUIDialogSelect2
24/10/2004 11:02:37 PM PowerScheduler: Shutdown timer deactivated by MediaPortal.GUI.TV.GUIRecordedTV
24/10/2004 11:02:37 PM Player.Play(C:\Recorded TV\Network TEN_Ten Late Night News_200410242230p4925.avi)
24/10/2004 11:02:37 PM Loading external players plugins
24/10/2004 11:02:37 PM found plugin:MediaPortal.WinampPlayer.WinampPlugin in plugins\ExternalPlayers\WinampExternalPlayer.dll
24/10/2004 11:02:37 PM player:Winamp. author: int_20h
24/10/2004 11:02:37 PM found plugin:MediaPortal.FoobarPlugin.FoobarPlugin in plugins\ExternalPlayers\FoobarExternalPlayer.dll
24/10/2004 11:02:37 PM player:Foobar2000. author: int_20h
24/10/2004 11:02:37 PM VideoPlayer:play C:\Recorded TV\Network TEN_Ten Late Night News_200410242230p4925.avi
24/10/2004 11:02:37 PM VideoPlayer:cleanup DShow graph
24/10/2004 11:02:37 PM add filter:ffdshow raw video filter to graph
24/10/2004 11:02:37 PM added filter:ffdshow raw video filter to graph
24/10/2004 11:02:37 PM add filterefault DirectSound Device to graph
24/10/2004 11:02:38 PM filter already in graph
24/10/2004 11:02:38 PM Filter #0 efault DirectSound Device
24/10/2004 11:02:38 PM Filter #1 :Video Renderer
24/10/2004 11:02:38 PM Filter #2 :ffdshow raw video filter
24/10/2004 11:02:38 PM Filter #3 :AVI Splitter
24/10/2004 11:02:38 PM Filter #4 :C:\Recorded TV\Network TEN_Ten Late Night News_200410242230p4925.avi
24/10/2004 11:02:38 PM 0,0-1292,1036 vidwin:117,764-422,989 fs:True
24/10/2004 11:02:38 PM VideoPlayer:Window (0,0)-(352,288) - (12,0)-(1278,1036)
24/10/2004 11:02:38 PM Duration:476.2485524
24/10/2004 11:02:38 PM window:MediaPortal.GUI.TV.GUIRecordedTV deinit
24/10/2004 11:02:39 PM window:MediaPortal.GUI.Video.GUIVideoFullscreen init
24/10/2004 11:02:39 PM 0,0-1292,1036 vidwin:117,764-422,989 fs:True
24/10/2004 11:02:39 PM VideoPlayer:Window (0,0)-(352,288) - (0,0)-(1292,1036)
24/10/2004 11:02:39 PM PowerScheduler: Shutdown timer activated, automatic shutdown in 10 minutes
24/10/2004 11:12:55 PM PowerScheduler: shutdown timer expired
24/10/2004 11:12:55 PM PowerScheduler: Hibernate system

The ........................... bit just means I took out some bits which I didn't think was relevant.

It seems as though when full screen video is playing, power scheduler is activating itself when it shouldn't.

Sam
samuel337 is offline   Reply With Quote
Old 2004-10-24, 16:45   #15 (permalink)
Anonymous
Guest
 
Posts: n/a


Default

@Samuel
Yes you're right, thanks for your effort in testing.
VideoPlayer is sending messages to the HOME window which activates the shutdown timer. I will try to figure out an other way of activating/deactivating the shutdown feature.

@ Anyone knowing the inner secrets of MP
I tried to listen to windows_init messages to find out which window is active but I didn't receive any init-messages. So for now, the last window that a message was sent to is interpreted as the active window (which obviously is not always the case).
My question is:
Is there a proven reliable method of knowing which window is curently active accessible from a plugin?
Any idea on other ways to implement the inactivity timer would also help.

/ Fred
  Reply With Quote
Old 2004-10-24, 21:07   #16 (permalink)
Portal Member
 
Join Date: Jun 2004
Location: Crailsheim
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by fred
@johnbobjamesson
I good place to start looking for clues is in the MediaPortal log.
Look for PowerScheduler loggings.
I will do that (didn't know it was logged ) since I of course scheduled recordings that were ahead more than 20 minutes... I'm using .12 now and will see if it works or what the log says.

J.
johnbobjamesson is offline   Reply With Quote
Old 2004-10-24, 21:48   #17 (permalink)
Portal Member
 
Join Date: May 2004
Location: Germany
Posts: 334
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Dunno if I missed something, but the plugin can´t wakeup a PC that was shut down, right? So how do you hibernate or standby your HTPCs? The button in the MCE skin is still a shut down button. So I always have to use the keyboard instead of the remote to hibernate it.

In the grabber setup the login and password is requested to start a task. I tried it today and it recorded while I wasn´t at home, but at the next start of the PC I had to login, so how did you solve this?
__________________
P4 2,66, Gigabyte MB, 512MB DDR, SkyStar 2, 160GB Samsung HDD, ATI Radeon 9600, Panasonic 37" Plasma screen plugged via VGA
mama is offline   Reply With Quote
Old 2004-10-24, 22:03   #18 (permalink)
Portal Member
 
Join Date: Jun 2004
Location: Crailsheim
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I use girder to hibernate or standby. Secondly, the plugin can hibernate or standby the pc now....

J.
johnbobjamesson is offline   Reply With Quote
Old 2004-10-24, 22:09   #19 (permalink)
Portal Member
 
Join Date: Aug 2004
Location: Fribourg (CH)
Posts: 314
Thanks: 0
Thanked 1 Time in 1 Post


Default

Quote:
Originally Posted by mama
The button in the MCE skin is still a shut down button.
Slightly off-topic: Would be cool to tell MP in Configuration if this button is for SHUTDOWN or for HIBERNATE....
__________________
waeberd is offline   Reply With Quote
Old 2004-10-24, 22:12   #20 (permalink)
Portal Member
 
Join Date: May 2004
Location: Germany
Posts: 334
Thanks: 0
Thanked 0 Times in 0 Posts


Default

@waeberd: I asked this some weeks ago. But it seems not to be on the todo.

@john: Yepp, but not at the moment I leave my living room and want to hibernate it and I dont want to install Girder.
__________________
P4 2,66, Gigabyte MB, 512MB DDR, SkyStar 2, 160GB Samsung HDD, ATI Radeon 9600, Panasonic 37" Plasma screen plugged via VGA
mama is offline   Reply With Quote
Reply

Bookmarks

Tags
plugin, powerscheduler, wakeup or hibernate

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some random recordings stop recording ocram General Support 1 2006-10-18 11:11
Bug: Powerscheduler and daily recordings inertia The old Bugreport Forum 3 2006-05-05 21:50
Auto Resume After Suspend Procedure Dado The old Bugreport Forum 28 2006-04-23 18:59
Resume from Stand By AberDino The old Bugreport Forum 25 2006-04-01 06:41
Mediaportal crashing when power scheduler is activated Adrian2M General Support 0 2005-12-30 17:07


All times are GMT +1. The time now is 05:46.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden