NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 33 34 35 36 37 … 93 Next »
IRecordingSource Questions

 
  • 0 Vote(s) - 0 Average
IRecordingSource Questions
blackpaw
Offline

Member

Posts: 158
Threads: 35
Joined: Dec 2007
#1
2008-04-01, 01:48 AM
Hi all, I'm experimenting with a IRecordingSource, IRecordingSourceConfiguration plugin. Have got a stub together that loads and doesn't crash Smile

At the moment I'm not accessing any tuners, just supplying sample mpg files in response to recording requests. At the moment all testing is done with LiveTV (Live PreviewMode off)

Anyway - the questions:

Code:
IRecordingSourceConfiguration.getRecordingSource()
This gets called a lot - should it return an freshly created IRecordingSource or just the one created when my plugin loads.

Code:
IRecordingSource.startRecording
IRecordingSource.startNewFile

These appear to serve very similar purposes - startRecording is called when initially starting LiveTV, then startNewFile is called after switching channels. Should I be deleting the old recording filewhen startNewFile is called?

Code:
channel.analogChannelNumber
This appears to be the only indicator of which channel I'm meant to switch to and relates to the source channel number in the "Edit Recording Source" dialog. Would this be correct?

Thanks - Lindsay
Lindsay - Trialling GBPVR 1.2.9, XP Pro SP3 RC2, WinFast -1000T, TinyTwin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2008-04-01, 01:59 AM
blackpaw Wrote:Hi all, I'm experimenting with a IRecordingSource, IRecordingSourceConfiguration plugin. Have got a stub together that loads and doesn't crash Smile

At the moment I'm not accessing any tuners, just supplying sample mpg files in response to recording requests. At the moment all testing is done with LiveTV (Live PreviewMode off)

Anyway - the questions:

Code:
IRecordingSourceConfiguration.getRecordingSource()
This gets called a lot - should it return an freshly created IRecordingSource or just the one created when my plugin loads.
In my recording sources, I have one class that implements both IRecordingSource and IRecordingSourceConfiguration. So the call to 'IRecordingSourceConfiguration.getRecordingSource()' just does a "return this;". If you wanted them in separate classes, I'd probably just return the same instance, allocated at initialisation time.

Quote:
Code:
IRecordingSource.startRecording
IRecordingSource.startNewFile

These appear to serve very similar purposes - startRecording is called when initially starting LiveTV, then startNewFile is called after switching channels. Should I be deleting the old recording filewhen startNewFile is called?
As you'd guess, startNewFile() is called when switching channels and creating a new file. This allows for a lower over-head implementation than requiring a StopRecording() followed by a StartRecording().

You dont need to delete the file. The app will do this when it is finished with it. The file would typically still be playing when this call is made.

Quote:
Code:
channel.analogChannelNumber
This appears to be the only indicator of which channel I'm meant to switch to and relates to the source channel number in the "Edit Recording Source" dialog. Would this be correct?
This is the channel number form next to the channel in the capture source channel list. In the case of my analog recording source, it tells the tuner to tune to this channel number.
blackpaw
Offline

Member

Posts: 158
Threads: 35
Joined: Dec 2007
#3
2008-04-01, 02:19 AM
Quote:In my recording sources, I have one class that implements both IRecordingSource and IRecordingSourceConfiguration. So the call to 'IRecordingSourceConfiguration.getRecordingSource( )' just does a "return this;"

Great, that's exactly what I am doing.

This is working out a lot easier than I expected, of course I'm hard coding all my config at the moment Smile and aren't actually tuning any real channels.

Thanks
Lindsay - Trialling GBPVR 1.2.9, XP Pro SP3 RC2, WinFast -1000T, TinyTwin
blackpaw
Offline

Member

Posts: 158
Threads: 35
Joined: Dec 2007
#4
2008-04-01, 02:21 AM
Another question - the method "getFinalFileName()" - is that supplied to allow for the IRecordingSource to return a different file name to the one passed in startRecording/startNewFile?
Lindsay - Trialling GBPVR 1.2.9, XP Pro SP3 RC2, WinFast -1000T, TinyTwin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2008-04-01, 03:12 AM
blackpaw Wrote:Another question - the method "getFinalFileName()" - is that supplied to allow for the IRecordingSource to return a different file name to the one passed in startRecording/startNewFile?
Yes.
blackpaw
Offline

Member

Posts: 158
Threads: 35
Joined: Dec 2007
#6
2008-04-01, 04:43 AM
One last question ... Smile

Sub - do you use the DirectShow.Net library?
Lindsay - Trialling GBPVR 1.2.9, XP Pro SP3 RC2, WinFast -1000T, TinyTwin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2008-04-01, 04:50 AM
No I dont.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Couple of questions about hacking npvr.db3 drmargarit 6 4,208 2014-09-08, 02:22 AM
Last Post: sub
  Questions about Scraping from thetvdb and themoviedb craigrs84 0 2,492 2014-08-19, 05:30 PM
Last Post: craigrs84
  Random API questions whurlston 7 3,254 2012-08-09, 02:21 PM
Last Post: whurlston
  NPVR database questions mvallevand 25 9,776 2011-01-06, 12:58 AM
Last Post: jksmurf
  Positioning of elements in skins (...and some other questions) ShiningDragon 13 4,254 2010-07-22, 06:42 PM
Last Post: ShiningDragon
  Plugin Questions systemshark 2 1,698 2009-02-28, 08:01 AM
Last Post: systemshark
  Plugins and interface questions from a C# rookie mvallevand 11 4,055 2008-08-26, 03:20 PM
Last Post: McBainUK
  IRecordingSource - GBPVR locks files? blackpaw 6 2,419 2008-04-01, 04:09 AM
Last Post: blackpaw
  XMLTV Questions -Oz- 34 10,287 2008-03-24, 01:19 AM
Last Post: zehd
  I-xmltv for SchedulesDirect questions FlatEarth 0 1,107 2007-09-17, 04:44 PM
Last Post: FlatEarth

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

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

Linear Mode
Threaded Mode