IWMEncDataViewCollection.RemoveAll
![]() |
The RemoveAll method removes all IWMEncDataView objects from the collection.
Syntax
IWMEncDataViewCollection.RemoveAll
Parameters
This method takes no parameters.
Return Values
If this method fails, it returns an error number.
Number | Description |
0xC00D0011 | This method cannot be called if the encoder engine is running. |
Remarks
To display previews and postviews, you must add the Windows Media Encoder Preview Control reference to the project. For more information, see Programming in Visual Basic.
Example Code
' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder
' Configure the encoding session including the input sources,
' the profile, and the output.
' Retrieve an IWMEncDataViewCollection object from the
' video source object to display a postview.
Dim DVColl_Postview As IWMEncDataViewCollection
Set DVColl_Postview = SrcVid.PostviewCollection
' Create a WMEncDataView object.
Dim PostView As WMEncDataView
Set PostView = New WMEncDataView
' Add the WMEncDataView object to the collection.
Dim lPostviewStream As Long
lPostviewStream = DVColl_Postview.Add(PostView)
' Remove all WMEncDataView objects from the collection.
DVColl_Postview.RemoveAll
Requirements
Reference: Windows Media Encoder Preview Control
Library: wmprevu.dll
See Also