NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 85 86 87 88 89 … 93 Next »
IEventNotification for the bads

 
  • 0 Vote(s) - 0 Average
IEventNotification for the bads
tybreizh29
Offline

Junior Member

Posts: 34
Threads: 17
Joined: Oct 2004
#1
2004-10-28, 07:44 AM
Hi,
I'm trying to develop a LCD plugin (LIS VL Sytem display), I did the whole display part (in Delphi, as it's my world), but now I trying to get the events working. For that, I modified the Comics Plugin to add event notifications, but after many tries (It's my third day in C#) I don't realy know what to modify (I read other threads about notifications, but it does not help me at all). I try to write a string when receiving events (I play a net radio or a mp3 file in music library for that).
Thanks for showing me the good way.
Bzh

=========================================
using System;
...
namespace GBPVR.Public
{
public enum EventTypes
{
CurrentAudioTrack,
CurrentVideoTrack,
CurrentTrackDuration,
CurrentChannelNumber,
CurrentChannelName,
};
public interface IEventNotification
{
void Notify(EventTypes eventType, string eventText);
}
}

namespace ComicPlugin
{
...
public void Notify(EventTypes eventType, string eventText)
{
System.Diagnostics.Debug.WriteLine("Event&quotWink;
}

...
}
=========================================
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,705
Threads: 767
Joined: Nov 2003
#2
2004-10-29, 05:34 AM
Unfortunately I dont have a sample I can give you, but I'll see if I can create one in the near future as I'm sure others would also find it useful.

Basically you need to just need a .net dll that contains one class, that implements the IEventNotification.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
public class MyLCDPlugin : IEventNotification
{
...
public void Notify(EventTypes eventType, string eventText)
{
System.Diagnostics.Debug.WriteLine("Event");
}
...
}
[/QUOTE]



tybreizh29
Offline

Junior Member

Posts: 34
Threads: 17
Joined: Oct 2004
#3
2004-10-29, 08:42 AM
Hi,
It's much better with the correct syntax, thank you very much. I did it withSharpDevelop, do you want me to send you the example? I once read thead about people asking for a SharpDevelop example.

I have some additionnal questions.
Is there a way to know :
- how many programs (to record tv) are stored.
- if PBVCR is recording, which channel and when it will stop.
- when it's playing, going forward backward pause... (to draw icons on the LCD, just like tape VCR)

Thank you for your help
Bzh
Guest

Unregistered
 
#4
2004-10-30, 08:30 AM
Will that plugin work whit the LIS 2 Indicator (USB)? If it would work I would like to be a Beta tester. LIS 2 Indicator
Cheers /Jonas
P.S.
If it would work would the LIS 2 software work aswell?
D.S.
tybreizh29
Offline

Junior Member

Posts: 34
Threads: 17
Joined: Oct 2004
#5
2004-10-30, 04:27 PM
Hi,
The problem with VL System, they provide no informations about their products. My LIS is RS232, with portmon I retrieve the protocol. Without a LIS2 or its specs, I won't be able to make it compatible, sorry about that. If you find the protocol to access your LIS2, I'll work on it.
Regards,
Bzh
PVR(SWE)
Offline

Junior Member

Posts: 40
Threads: 3
Joined: May 2004
#6
2004-10-31, 03:26 PM
Hi,
Would this app. work to find the protocol? USB Portmonitor
If it would I will download it and send you evrything you need.
Cheers /Jonas
janviet
Offline

Member

Posts: 50
Threads: 9
Joined: Apr 2004
#7
2004-11-03, 09:09 AM
Hi Jonas,

I'm only trying to help and I don't want to lure you away from tybreizh29's LCD plugin, but may I suggest you have a look at jaLCDs? If you do a search on the jaLCDs forum (on http://www.jalcdsforum.de) you'll find a thread (don't worry, it's in English...) on the L.I.S. 2 USB display and a link to an output plugin for jaLCDs which supports it.

Once you have your display working with jaLCDs, I suggest you give my jaLCDs based LCD plugin a try...

Regards,

Jan
tybreizh29
Offline

Junior Member

Posts: 34
Threads: 17
Joined: Oct 2004
#8
2004-11-04, 12:09 PM
Hi janviet,
I did a plugin because I did not find something else do you the job.
Could you please give an url to retrieve you GBPVR LCD plugin?
Thanks
Bzh
janviet
Offline

Member

Posts: 50
Threads: 9
Joined: Apr 2004
#9
2004-11-05, 08:01 AM
Bzh,

I don't mind sending it again, but didn't I send it to you a few days ago already..?

Regards,

Jan
tybreizh29
Offline

Junior Member

Posts: 34
Threads: 17
Joined: Oct 2004
#10
2004-11-05, 12:26 PM
Hi,
Sorry, I didn't realize it was from you, I looked at the source code (and to be honest only at the event part), not at the readme.txt, my apology for that. Now I have read the readme, and the source code in its whole part, it's clearer now...
Regards,
Bzh
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  List of "IEventNotification" events? reven 8 3,373 2012-11-01, 10:56 PM
Last Post: reven
  Settings config screen for class IEventNotification plugin imilne 9 3,474 2011-09-17, 06:06 PM
Last Post: sub
  NPVR IEventNotification ralphy 12 5,075 2010-09-28, 11:39 PM
Last Post: pBS
  IMenuTask and IEventNotification not working well together since 0.98 psycik 5 2,167 2006-10-01, 05:27 PM
Last Post: sub
  implements IMenuTask, IEventNotification reven 5 1,889 2005-02-13, 12:49 PM
Last Post: reven
  [sub] IEventNotification, event pb tybreizh29 1 1,623 2004-11-01, 04:10 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode