NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 88 89 90 91 92 93 Next »
Supporting new recording devices with plugins

 
  • 0 Vote(s) - 0 Average
Supporting new recording devices with plugins
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#1
2004-06-10, 08:28 PM
If anyone is interested in writing a plugin to support additional capture devices (HDTV, DVB etc), and would like to write their own capture device plugin, let me know.

Theres not too much required. You ultimately need to implement a class which implements the following interface:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
using System;

namespace GBPVR.Public
{
/// <summary>
/// Interface implemented by all recording sources.
/// </summary>
public abstract class IRecordingSource
{
public enum RecordingStatus
{
RECORDING_IN_PROGRESS,
RECORDING_FAILED,
RECORDING_COMPETED
};

abstract public void startRecording(int qualityLevel, string suggestedFilename, int sourceChannel, bool useStreamBufferEngineIfAvailable);
abstract public RecordingStatus getRecordingStatus();
abstract public void stopRecording();
abstract public string getFinalFileName();
}
}
[/QUOTE]
There is a couple of addition steps required to implement a configuration form, but let me know if anyone wants to write their own plugin and I'll help you out with this stuff.



sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2004-06-10, 08:52 PM
Like the existing recording plugins in GB-PVR, you probably write a .net class that implements this interface and behind the scenes calls native unmanaged code. I've written my plugins in C#, which uses C++ classes behind the scenes.

It is possible to do this stuff in C#/VB but it is more difficult given DirectX SDK is more aimed at C++ developers and includes C++ header files for definitions of all directshow APIs and intefaces.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#3
2004-06-10, 08:54 PM
The WinTVCap plugin is implmented entirely in C#. When startRecording() is called GB-PVR starts a new process (WinTVCap.exe -start -board ...). When stopRecording() is called GB-PVR gracefully shutsdown WinTVCap by launching WinTVCap.exe -stop -board ...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 401 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 273 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 909 2023-11-09, 02:14 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 68,063 2020-11-26, 10:02 PM
Last Post: mandai
  Recording direct to GPhotos API rgonzalez 0 1,394 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,883 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,431 2019-08-15, 09:34 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,632 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,725 2017-03-02, 03:13 PM
Last Post: mvallevand
  Change recording filename programmatically immediately before recording starts? craigrs84 5 5,973 2015-07-13, 09:28 PM
Last Post: patco444

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

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

Linear Mode
Threaded Mode