Jump to content

EPGManager mit Java via Com


heidiuwe

Recommended Posts

Hi,

 

ich möchte gerne mit Java den EPG-Manager auslesen. An sich funktioniert das auch schon ganz gut, außer dass ich ab und an Sender nicht befüllt bekomme.

 

Mit dem Funktionsaufruf von get mit den entsprechenden Parametern (sid, tid, Startzeit,Endzeit) erhalte ich viele der angeforderten Werte.

Anfangszeitpunkt und Endzeitpunkt ermittel ich mit momentane Uhrzeit - 10 Stunden und momentane Uhrzeit + 10 Stunden.

Hierbei kommt es aber ab und an vor, dass 1 oder zwei Sender nicht mit Informationen befüllt werden. Das Kuriose daran ist, dass die Sender aber mal da und mal nicht da sind. Ein wirkliches Schema habe ich noch nicht entdeckt.

 

Nun habe ich etwas genauer in der Anleitung gelesen und habe die folgende Beschreibung gefunden:

 

function Get(SID: Integer; TID: Integer; StartTime: TDateTime; EndTime: TDateTime): IEPGCollection; 
Returns a list of EPGItems which meet the criteria. 

Parameters
SID 
The ITuner.SID of the wanted channel, if you want all channel it has to be 0. 
TID 
The ITuner.TransportStreamID of the wanted channel, if you want all channel it has to be 0. 
StartTime 
The start time and date. If set to 0 it gets all available EPG data till EndTime. 
EndTime 
The end time and date. If set to 0 it gets all available EPG data from StartTime till the end of the buffer. 
If StartTime=EndTime you get all programs running at this point of time. 
Returns
A IEPGCollection with all matching entries.

 

Diese Beschreibung sagt, wenn Startzeitpunkt und Endzeitpunk 0 sind dann erhalte ich alle EPG-Einträge die es für den Sender gibt.

Wie trage ich aber einen 0-Wert in Java in die Com-Bridge ein?

Ich habe es schon mit einem new Date(0) für Anfangs- und Endzeitpunkt versucht, was aber nicht klappen kann, weil dann wiederum beide Werte als Datumswert gleich sind und ich nur die Informationen erhalte, die auf dieser Datumslinie liegen.

 

Es wäre klasse, wenn mir jemand hierzu einen Tipp geben könnte!!

 

 

Gruß

Uwe

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...