MPLATFORMLib Namespace > MPlaylistClass Class : PreviewEnable Method |
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 )
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;