Operates a single file or network stream source.
Gets the video frame from the specific position of file.
void FileFrameGet( double _dblPos, double _dblPreroll, out MFrame _ppFrame )
_dblPos - position in file from which the frame will be received
_dblPreroll - preroll value
_ppFrame - pointer to the frame
Gets the video frame from the specific position of the file by timecode.
void FileFrameGetByTC( ref M_TIMECODE _pTC, out MFrame _ppFrame )
_pTC - timecode position to get frame from
_ppFrame - output frame
Get Input and Output time points of file in seconds. If Out value less than In that means that Out value is not specified and file will be played to the end.
void FileInOutGet( out double _pdblIn, out double _pdblOut, out double _pdblDuration )
_pdblIn - input time point of file in seconds Default value is 0. File plays from the beginning.
_pdblOut - output time point of file in seconds. Default value is 0. File plays to the end (file duration value).
_pdblDuration - duration of the file in seconds
Gets the in and out points as timecode. If Out point is not specified it returns last frame timecode.
void FileInOutGetTC( out M_TIMECODE _pTCIn, out M_TIMECODE _pTCOut, out int _pbOutSpecified )
_pTCIn - timecode In value
_pTCOut - timecode Out value
_pbOutSpecified - flag that indicates whether out point is specified
Sets the Input and Output time points of a file in seconds
void FileInOutSet( double _dblIn, double _dblOut )
_dblIn - input time point of file in seconds
_dblOut - output time point of file in seconds
Sets the In and Out points as timecode. If Out point is less then In point then it sets out point as timecode of the clip last frame.
void FileInOutSetTC( ref M_TIMECODE _pTCIn, ref M_TIMECODE _pTCOut )
_pTCIn - timecode of the in point
_pTCOut - timecode of the out point
Gets the file name, the user properties and the file media information.
void FileNameGet( out string _pbsFile )
_pbsFile - full file name (including full path) and its properties
Allows you to: Set file name of currently played file. Seamlessly replace currently played file to another one. Set next played file. It will be played after current file is finished. Insert break to file playback: interrupt current file playback, play another file till the end and resume current file playback. Set properties of the file.
void FileNameSet( string _bsFile, string _bsParam )
_bsFile - full file name (including full path)
_bsParam - string containing properties set by user
Pauses the playback.
void FilePlayPause( double _dblSeconds )
_dblSeconds - number of seconds for pause Possible values: 0 - pauses playback forever. n - pauses playback for n seconds.
Starts the file playback.
Stops the file playback for _dblSeconds seconds. To stop file as usual use 0 secods as parameter.
void FilePlayStop( double _dblSeconds )
_dblSeconds - time interval of stop in seconds
Gets the current play position of file in seconds. The position is calculatid from the beginning of file without breaks and in-points.
void FilePosGet( out double _pdblFilePos )
_pdblFilePos - file position in seconds
Gets the position of file as timecode. The position is calculatid from the beginning of file without breaks and in-points.
void FilePosGetTC( out M_TIMECODE _pTC )
_pTC - timecode of the position
Sets a position of file in seconds. The position is calculatid from the beginning of file without breaks and in-points.
void FilePosSet( double _dblPos, double _dblPreroll )
_dblPos - play position of file in seconds to be set from in-point of current file
_dblPreroll - preroll value in seconds. It will be passed from the beginning of file before position set.
Sets the position in file as timecode. The position is calculatid from the beginning of file without breaks and in-points.
void FilePosSetTC( ref M_TIMECODE _pTC )
_pTC - timecode of the position
Gets the playing rate of current file.
void FileRateGet( out double _pdblRate )
_pdblRate - current playing rate value. Negative value means reverse playback.
Sets the playing rate of current file.
void FileRateSet( double _dblRate )
_dblRate - current playing rate value. Negative value means reverse playback.
Gets the current file state.
void FileStateGet( out eMState _peState, out double _pdblTimeRemain )
_peState - state of the file
_pdblTimeRemain - time that remains for this state