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.
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.