MPLATFORMLib Namespace > MPlaylistClass Class : FileFrameGetByTC Method |
Public Overridable Sub FileFrameGetByTC( _ ByRef _pTC As M_TIMECODE, _ ByRef _ppFrame As MFrame _ )
public virtual void FileFrameGetByTC( ref M_TIMECODE _pTC, out MFrame _ppFrame )
public procedure FileFrameGetByTC( var _pTC: M_TIMECODE; Out _ppFrame: MFrame ); virtual;
public: virtual void FileFrameGetByTC( ref M_TIMECODE _pTC, [PARAMFLAG::Out] MFrame* _ppFrame )
Here is example of how to work with timecode:
Dim myTime As M_TIMECODE Dim pOutTC As M_TIMECODE Dim pnOutSpec As Integer Dim myItem As MItem Dim strPath As String Dim dblPos As Double myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem) Dim myFrame As MFrame myItem.FileInOutGetTC(myTime, pOutTC, pnOutSpec) myTime.nHours = 0 myTime.nMinutes = 0 myTime.nSeconds = 9 myTime.nFrames = 0 myItem.FileFrameGetByTC(myTime, myFrame)
M_TIMECODE myTime; M_TIMECODE pOutTC; int pnOutSpec; MItem myItem; string strPath; double dblPos; myPlaylist.PlaylistGetByIndex(1, out dblPos, out strPath, out myItem); MFrame myFrame; myItem.FileInOutGetTC(out myTime, out pOutTC, out pnOutSpec); myTime.nHours = 0; myTime.nMinutes = 0; myTime.nSeconds = 9; myTime.nFrames = 0; myItem.FileFrameGetByTC(ref myTime, out myFrame);
var myTime, pOutTC: M_TIMECODE; myFrame: MFrame; dblPos: double; strPath: widestring; pnOutSpec: integer; myItem: MItem; begin myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem); myItem.FileInOutGetTC(myTime, pOutTC, pnOutSpec); myTime.nHours = 0; myTime.nMinutes = 0; myTime.nSeconds = 9; myTime.nFrames = 0; myItem.FileFrameGetByTC(myTime, myFrame); end;