2007-12-02, 01:29 AM
What is the best way to get details of the LiveTV currently playing including, Program description, start time, end time? Channel Name and Number come through as an event notification, but I have not been able to get any GBPVRPublic methods or properties to get the other details. (Perhaps I'm using the wrong ones, or trying them the wrong way)
So I extract these details directly from the database. The problem is that I suspect that this might be the cause of some random pausing and stuttering during LiveTV playback, since I assume that the connection.Open() (see below) locks the database for exclusive access until connection.Close() is called and maybe PVRX2 is waiting to gain access too. For my code, this takes between 150-200mS, and is done every 30 seconds, since the program details will change at the end of a show, and I want to get the current information.
Could a locked database be the cause of the stuttering?
How can I best get the data I want from the database?
Can I open the database non-exclusively/readonly, and if so how?
So I extract these details directly from the database. The problem is that I suspect that this might be the cause of some random pausing and stuttering during LiveTV playback, since I assume that the connection.Open() (see below) locks the database for exclusive access until connection.Close() is called and maybe PVRX2 is waiting to gain access too. For my code, this takes between 150-200mS, and is done every 30 seconds, since the program details will change at the end of a show, and I want to get the current information.
Code:
connection = DatabaseHelperFactory.getDbProviderFactory().CreateConnection();
connection.ConnectionString=GBPVRInfo.GBPVRDBConnectionString;
connection.Open();
Could a locked database be the cause of the stuttering?
How can I best get the data I want from the database?
Can I open the database non-exclusively/readonly, and if so how?
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]