PreviewEnable Method (MFileClass)
channel ID. Reserved for future use. Use empty string (that is "") instead of this parameter.
"0" is to disable audio and "1" is to enable audio in preview
"0" is to disable video and "1" is to enable video in preview
Enables the preview.
Syntax
Public Overridable Sub PreviewEnable( _
   ByVal _bsChannelID As String, _
   ByVal _bEnableAudio As Integer, _
   ByVal _bEnableVideo As Integer _
) 
public virtual void PreviewEnable( 
   string _bsChannelID,
   int _bEnableAudio,
   int _bEnableVideo
)
public procedure PreviewEnable( 
    _bsChannelID: String;
    _bEnableAudio: Integer;
    _bEnableVideo: Integer
); virtual; 
public: virtual void PreviewEnable( 
   BSTR* _bsChannelID,
   int _bEnableAudio,
   int _bEnableVideo
) 

Parameters

_bsChannelID
channel ID. Reserved for future use. Use empty string (that is "") instead of this parameter.
_bEnableAudio
"0" is to disable audio and "1" is to enable audio in preview
_bEnableVideo
"0" is to disable video and "1" is to enable video in preview
Example

Here is playlist initialization example:

Dim m_objPlaylist As MPlaylistClass = New PlaylistClass()
m_objPlaylist.PreviewWindowSet("", panelPreview.Handle.ToInt32())
m_objPlaylist.PreviewEnable("", 1, 1)
m_objPlaylist.ObjectStart(New Object())
MPlaylistClass m_objPlaylist = new PlaylistClass();
m_objPlaylist.PreviewWindowSet("", panelPreview.Handle.ToInt32());
m_objPlaylist.PreviewEnable("", 1, 1);
m_objPlaylist.ObjectStart(new object());
var
myPlaylist: IMPlaylist;
myPreview: IMPreview;
m_objEvents: TEvents;
myObject: IMObject;
cookie: LONG_PTR;
begin
myPlaylist:= CreateComObject(CLASS_MPlaylist) as IMPlaylist;
myObject:= myPlaylist as IMObject;
myPreview:= myPlaylist as IMPreview;
m_objEvents:= TEvents.Create();
myObject.ObjectCallbackSet(m_objEvents, cookie);
myPreview.PreviewWindowSet('', panelPreview.Handle);
myPreviewEnable('', 1, 1);
end;
See Also

Reference

MFileClass Class
MFileClass Members