BreaksAdd Method (IMBreaks)
break time in seconds
reference to MItem object. When this parameter is not null then path and param values are ignored.
Possible values:
full path of the clip
additional parameters
newly created break object
Adds a new break to specific time of a playlist, file or live source.
Syntax
Sub BreaksAdd( _
   ByVal _dblTime As Double, _
   ByVal _pExternOrRef As Object, _
   ByVal _bsPath As String, _
   ByVal _bsParam As String, _
   ByRef _ppBreakItem As MItem _
) 
procedure BreaksAdd( 
    _dblTime: Double;
    _pExternOrRef: TObject;
    _bsPath: String;
    _bsParam: String;
   Out  _ppBreakItem: MItem
); 
void BreaksAdd( 
   double _dblTime,
   IUnknown* _pExternOrRef,
   BSTR* _bsPath,
   BSTR* _bsParam,
   [PARAMFLAG::Out] MItem* _ppBreakItem
) 

Parameters

_dblTime
break time in seconds
_pExternOrRef
reference to MItem object. When this parameter is not null then path and param values are ignored.
Possible values:
  • null - path from _bsPath parameter is used.
  • MItem object - MItem object is used.
_bsPath
full path of the clip
_bsParam
additional parameters
_ppBreakItem
newly created break object
Example
Dim pItem As MItem
'Add file break at the beginning of playlist
pBreaks.BreaksAdd(0, Nothing, "d:\clips\clip1.mpg", "", pItem)
'Add live break at 10-th second of playlist
pBreaks.BreaksAdd(10, pMLive, "", "", pItem)
MItem pItem;
//Add file break at the beginning of playlist
pBreaks.BreaksAdd(0, null, @"d:\clips\clip1.mpg", "", out pItem);
//Add live break at 10-th second of playlist
pBreaks.BreaksAdd(10, pMLive, "", "", out pItem);
pItem: MItem;

//Add file break at the beginning of playlist
pBreaks.BreaksAdd(0, nil, 'd:\clips\clip1.mpg', '', pItem);
//Add live break at 10-th second of playlist
pBreaks.BreaksAdd(10, pMLive, '', '', pItem);
See Also

Reference

IMBreaks Interface
IMBreaks Members