NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 83 84 85 86 87 … 93 Next »
Developing without Tuner Card

 
  • 0 Vote(s) - 0 Average
Developing without Tuner Card
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#1
2004-11-22, 10:03 PM
Sub, is there any possibility of allowing a program to be scheduled through the ScheduleHelper if you don't have a tuner card installed? I'd rather use your API instead of manually adding it to the Database myself. However, currently if I try to schedule a program on my development machine (which doesn't have a tuner card), the scheduling fails because it tries to initialize or grab the capture device. Something like a NullCapture device, or at least a stub that simulates a capture device would be nice.

I just need something to develop test against.

Can a Development Capture device be added to the Configuration file? Might be the easiest way to solve this instead of actually changing the API too much that interfaces with it.
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#2
2004-11-22, 10:55 PM
My development machine does not have a capture card. I have not seen a problem.

I did setup zaptoit. And told the config that I have a capture card.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#3
2004-11-23, 04:56 AM
What I'm getting is a warning saying no Capture card found, even after running the config. No problem as eveything seems to be alright, and I can even manually schedule a recording through the Web Admin, but through a console based application I can't seem to add a manual recording to the schedule. When I call the ScheduleRecording method through the ScheduleHelper I get a null pointer reference returned, and when i check the Manage recordings, I don't see the program added to the schedule. Here is the section of code I'm using for testing:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> foreach (Programme program in channel.getProgrammeList()) {
String findString = program.getTitle().ToUpper();

if (findString.IndexOf(searchFor.ToUpper(), 0) >= 0) {
Console.WriteLine("Found: " + searchFor);
Console.WriteLine("Title: " + program.getTitle());
Console.WriteLine("Channel: " + channel.channelName);
Console.WriteLine("Start Time: " + program.getStartTime().ToLongDateString() + " " + program.getStartTime().ToLongTimeString());
Console.WriteLine("End Time: " + program.getEndTime().ToLongDateString() + " " + program.getEndTime().ToLongTimeString());
ScheduledRecording myRecording = scheduleHelper.SheduleRecording(program.getChannelOID(), program.getStartTime(), program.getEndTime(), program, ScheduledRecording.TYPE_RECORD_ONCE, ScheduledRecording.GROUP_NONE, null);

}
}
[/QUOTE]

Not sure why I'm getting the null pointer, as I've verified that all the Program infromation that is being passed is correct.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#4
2004-11-23, 05:51 AM
Very odd thing... If I pass the program OID to the Detail.aspx page, and schedule the recording from there it works like a champ. If I just execute from my console test applicaiton, I get the null pointer. I've verified all the information is being passed so I know that part is working. Very odd, but I have cludge work around. Still wondering what is wrong with the above code though.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  FM tuner support in NextPVR? Goongyae 2 1,507 2022-11-23, 01:22 PM
Last Post: mvallevand
  IPTV like stream from Sound Card input - FM Radio Project NumberFive 3 1,537 2022-11-20, 04:28 PM
Last Post: mvallevand
  Developing Android TV client fred250 2 1,888 2020-11-16, 06:33 PM
Last Post: fred250
  Tuner status & disk usage mikaelgu 2 2,976 2017-04-10, 04:51 PM
Last Post: mikaelgu
  Determine Server Tuner/Recorder Status from Console App 27InchSony 13 8,445 2016-12-21, 05:03 AM
Last Post: mvallevand
  I want to start developing plugins...but how? OrenShapir 6 4,148 2014-11-18, 10:38 PM
Last Post: mvallevand
  What causes a new tuner to be used services/live?channel= psycik 2 2,365 2014-02-04, 05:32 PM
Last Post: psycik
  Tuner plugins and client id mvallevand 2 2,114 2013-07-03, 01:39 AM
Last Post: mvallevand
  Tuner Plugins - Output folders mvallevand 2 2,078 2013-02-19, 07:45 PM
Last Post: mvallevand
  Tuner plugins mvallevand 4 2,505 2012-08-05, 11:19 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode