Operates the MDelay timeshifting functionality and the export of the buffered video.
Methods
DelayAvailable
Gets the start and the end time positions of the current available buffer.
Syntax
void DelayAvailable(
out M_DATETIME _pBufferStartTime,
out double _pdblBufferMinSec,
out double _pdblBufferMaxSec
)
Parameters
_pBufferStartTime - an absolute start time when the MDelay was enabled.
_pdblBufferMinSec - the relative start time - an interval from the absolute start time to the moment where the data is available.
_pdblBufferMaxSec - the relative end time - an interval from the absolute start time to the end of the buffer.
DelayEnable
Enable or disable writing into the MDelay buffer.
Syntax
void DelayEnable( int _bEnable )
Parameters
_bEnable - 1 to enable the bufferization, 0 to stop the process.
DelayExportBufferByTime
Exports the buffer data for the defined period to a local file.
Syntax
void DelayExportBufferByTime(
string _bsFilePath,
string _bsPropsList,
double _dblBufferTimeSec,
double _dblDurationSec,
out IMFAsyncOperation _ppAsyncOp
)
Parameters
_bsFilePath - the output file path,
_bsPropsList - the export properties to specify audio codec parameters,
_dblBufferTimeSec - the time of the buffer to start export from,
_dblDurationSec - the desired duration of the resulting file,
_ppAsyncOp - the asynchronous operation object to check its state.
DelayExportGetByIndex
Gets the export buffer operation by its index.
Syntax
void DelayExportGetByIndex(
int _nIndex,
out IMFAsyncOperation _ppAsyncOp
)
Parameters
_nIndex - the operation index,
_ppAsyncOp - the asynchronous operation object to check its state.
DelayExportGetCount
Gets the actual number of running export operations.
Syntax
void DelayExportBufferByTime(
out int _pnCount
)
Parameters
_pnCount - the total number of export operations.
DelayFrameGetByTime
Gets a video frame from the delay buffer by its time.
Syntax
void DelayFrameGetByTime(
double _dblBufferTimeSec,
int _bReverseDirection,
out object _ppMFFrame,
string _bsHints
)
Parameters
_dblBufferTimeSec - the target position in the buffer,
_bReverseDirection - indicates whether the position is calculated from the end of the buffer,
_ppMFFrame - the buffered frame object,
_bsHints - extra parameters.
DelayInit
Initializes a delay buffer inside of a local file.
Syntax
void DelayInit (
string _bsStoragePath
)
Parameters
_bsStoragePath - a path to the local buffer. Use empty string to buffer the data in RAM.