PreviewEnable Method (IMPreview)
channel ID. By default use empty string
0 is to disable audio preview, 1 is to enable audio preview
0 is to disable video preview, 1 is to enable video preview
Enables a preview (audio and video)
Syntax
Sub PreviewEnable( _
   ByVal _bsChannelID As String, _
   ByVal _bEnableAudio As Integer, _
   ByVal _bEnableVideo As Integer _
) 
procedure PreviewEnable( 
    _bsChannelID: String;
    _bEnableAudio: Integer;
    _bEnableVideo: Integer
); 

Parameters

_bsChannelID
channel ID. By default use empty string
_bEnableAudio
0 is to disable audio preview, 1 is to enable audio preview
_bEnableVideo
0 is to disable video preview, 1 is to enable video preview
Example

Here is example of how to initialize a preview:

m_objPreview = new MFPreviewClass();
//Configure preview
m_objPreview.PreviewWindowSet("", panelPreview.Handle.ToInt32());
m_objPreview.PreviewEnable("", 1, 1);
See Also

Reference

IMPreview Interface
IMPreview Members