WinLIRC Plugin (outdated) (1 Viewer)

a.dimuzio

Portal Member
November 2, 2004
32
0
Hi Jadz, I just want to let you know that the plugin does not work with the current CVS build.
Here is the exception when I try to access to the setup part:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.TypeLoadException: Could not load type AMS.Profile.Xml from assembly Core, Version=1.0.1942.25123, Culture=neutral, PublicKeyToken=null.
at MediaPortal.WinLIRC3.WinLIRCSettingsV2.LoadServerSettings()
at MediaPortal.WinLIRC3.WinLIRCSettingsV2..ctor()
at MediaPortal.WinLIRC3.WinLIRCReceive.ShowPlugin()
at MediaPortal.Configuration.Sections.Plugins.setupButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Apparently it's a problem common to several plugins, and it seems to be due to some name changes in MP.
 

jadz

Portal Pro
August 30, 2004
150
0
Canada
Hrm... looks like they may have changed a reference to the XML classes.

I will check it tonight and try to upload a new build/source for the plugin.

Also it would be great if we could try to get some of the bugs that are identified through using the plugin in this upcoming release of the app.

-jadz
 

a.dimuzio

Portal Member
November 2, 2004
32
0
jadz said:
Also it would be great if we could try to get some of the bugs that are identified through using the plugin in this upcoming release of the app.

-jadz

It would be great! I started to give a look at the code, I checked out the branch yesterday, but I couldn't finde the Context menu to fix the action problem. I saw how actions are defined and how they are handled by other menus and modules, so it should not be difficult to fix the issue... If I can find the file off course :)
 
A

Anonymous

Guest
future

wil there be anymore info availble

like volume up and down working ?

is 0.1.0.10 stil supported ?

which bugs are solved ??

. and , solved ??

Frank

( compostbak)
 

jadz

Portal Pro
August 30, 2004
150
0
Canada
Due to the renaming of AMS.Profile to MediaPortal.Profile in post 0.1.1.1 versions of MediaPortal there will be a 0.1.1.1 version and a 0.1.1.2+ version.

The . and , have been fixed.

Vol+/- and context menu are still causing probalems as far as I can tell, though I don't think there is anything wrong with the plugin... ?
 
A

Anonymous

Guest
tested vol +/- on version MP 0.1.0.10
It is working on the keyboard but it is not working with on the remote control

Frank

(Compostbak)
 

jadz

Portal Pro
August 30, 2004
150
0
Canada
I just made a custom form to send the action #102 and #103 to mediaportal directly, and the volume didn't change.

I would say that MediaPortal is not responding to these actions.

Code:
			ActionToSendNow = new Action(GetAction(Int32.Parse(ActionToSend.Text)),0,0);
			GUIWindowManager.OnAction(ActionToSendNow);



Code:
		private Action.ActionType GetAction(int id)
		{
			
			Action.ActionType action = new Action.ActionType();
			try
			{
				
				action = (Action.ActionType) Enum.ToObject(typeof(Action.ActionType),id);
				return action;
			}
			catch
			{
				
				MessageBox.Show("didn't convert to an action I 
guess....");
				return action;
			}
			
			
		}
 

jadz

Portal Pro
August 30, 2004
150
0
Canada
Something is happening because when ever I send an action including (ACTION_VOLUME_DOWN=102) or (ACTION_VOLUME_UP=103) when on the home screen the image on the home screen turns back to the turn table.... very odd.

In MediaPortal.cs


Code:
				case Action.ActionType.ACTION_VOLUME_DOWN : 
					iCurrent = AudioMixerHelper.GetMinMaxVolume(out iMin, out iMax);
					iStep = (iMax - iMin) / 10;
					iCurrent -= iStep;
					if (iCurrent < iMin) iCurrent = iMin;
					AudioMixerHelper.SetVolume(iCurrent);
					MessageBox.Show("Volume Going Down");
					return;
          

				case Action.ActionType.ACTION_VOLUME_UP : 
					iCurrent = AudioMixerHelper.GetMinMaxVolume(out iMin, out iMax);
					iStep = (iMax - iMin) / 10;
					iCurrent += iStep;
					if (iCurrent > iMax) iCurrent = iMax;
					AudioMixerHelper.SetVolume(iCurrent);
					break;

That doesn't get executed when I send it from the plugin, it does if I press the -/+ keys.[/quote]

I'm heading off for the weekend. Hopefully everything will be fixed when I come back?
 

jlb1234

Portal Member
April 29, 2005
7
0
Brazil
Sorry for my bad english, i'm a Brazilian Developer :)

I made changes in the code of WinLIRC plugin that had solved some problems. The code can be downloaded in http://planeta.terra.com.br/informatica/intellisoft/downloads/winlirc.zip

The changes:

1) I am using the repeat counter sent by the WinLIRC instead of a delay/repeat timer in the plugin. The alteration solved some problems with the precision and the repetition of keys.

2) The setup screen now shows two sliders for control of delay and the repetition of the keys, in the same way that the function "keyboard" in Windows Control Panel.

3) I replaced the GUIWindowManager object for the GUIGraphicsContext object when sending the actions to MP. The alteration solved the problem of the volume control and the sub-menus response.

The code works with the last CVS version.
 

Users who are viewing this thread

Top Bottom