IMVPlaylist

The IMVPlaylist interface contains methods and properties to configure the MV Playlist Source filter.

Methods:

AddFolder Add all files from a folder at the end of the playlist.
DefaultFrameRate Default framerate used for a first image or image batch item.
GetDuration Returns the duration of the whole playlist.
GetItemDuration Get the duration of a playlist item.
GetItemInfo Get the path of a playlist item.
GetVideoFormat Get the current used video size and frame rate.
InsertMediaFile Insert a media file at the given position into the playlist.
ItemCount Count of the items of the playlist.
LoadPlaylist Load a playlist from a file.
MoveItem Moves an item to a new position within the playlist.
RemoveItem Remove a item from the playlist.
Reset Reset the playlist.
SavePlaylist Save the playlist into a file.

Header file: IMVPlaylist.h
Interface definition language file: IMVPlaylist.idl
Typelib: MVPlaylist
Interface ID: IID_IMVPlaylist


Method IMVPlaylist::AddFolder

Declaration: Sub AddFolder(Folder As String)

Add all files from a folder at the end of the playlist.

Parameter:

Folder Path to the folder.
C Prototype:

HRESULT AddFolder(BSTR Folder);


Property IMVPlaylist::DefaultFrameRate

Declaration: Property Get/Put DefaultFrameRate As Double

Default framerate used for a first image or image batch item. If the first playlist item contains a framerate (movie file) the filter uses that framerate.

C Prototype:

HRESULT put_DefaultFrameRate(DOUBLE newVal);
HRESULT get_DefaultFrameRate(DOUBLE *pVal);


Method IMVPlaylist::GetDuration

Declaration: Function GetDuration As Double

Returns the duration of the whole playlist.

C Prototype:

HRESULT GetDuration(DOUBLE* value);


Method IMVPlaylist::GetItemDuration

Declaration: Function GetItemDuration(Item As Long) As Double

Get the duration of a playlist item.

Parameter:

Item Index of the video track.
C Prototype:

HRESULT GetItemDuration(LONG Item, DOUBLE* value);


Method IMVPlaylist::GetItemInfo

Declaration: Function GetItemInfo(Item As Long) As String

Get the path of a playlist item.

Parameter:

Item Index of the video track.
C Prototype:

HRESULT GetItemInfo(LONG Item, BSTR* value);


Method IMVPlaylist::GetVideoFormat

Declaration: Sub GetVideoFormat(Width As Long, Height As Long, FrameRate As Double)

Get the current used video size and frame rate.

Parameter:

Width Width of the video image.
Height Height of the video image.
FrameRate Framerate of the video stream.
C Prototype:

HRESULT GetVideoFormat(LONG* Width, LONG* Height, DOUBLE* FrameRate);


Method IMVPlaylist::InsertMediaFile

Declaration: Sub InsertMediaFile(Path As String, Position As Long)

Insert a media file at the given position into the playlist.

Parameter:

Path Path to the media file.
Position Position within the playlist.
C Prototype:

HRESULT InsertMediaFile(BSTR Path, LONG Position);


Property IMVPlaylist::ItemCount

Declaration: Property Get ItemCount As Long

Count of the items of the playlist.

C Prototype:

HRESULT put_ItemCount(LONG newVal);
HRESULT get_ItemCount(LONG *pVal);


Method IMVPlaylist::LoadPlaylist

Declaration: Sub LoadPlaylist(Path As String)

Load a playlist from a file.

Parameter:

Path Path to the playlist file.
C Prototype:

HRESULT LoadPlaylist(BSTR Path);


Method IMVPlaylist::MoveItem

Declaration: Sub MoveItem(Item As Long, NewPosition As Long)

Moves an item to a new position within the playlist.

Parameter:

Item Index of the movie track.
NewPosition New position of the track.
C Prototype:

HRESULT MoveItem(LONG Item, LONG NewPosition);


Method IMVPlaylist::RemoveItem

Declaration: Sub RemoveItem(Item As Long)

Remove a item from the playlist.

Parameter:

Item Index of the movie track.
C Prototype:

HRESULT RemoveItem(LONG Item);


Method IMVPlaylist::Reset

Declaration: Sub Reset

Reset the playlist.

C Prototype:

HRESULT Reset();


Method IMVPlaylist::SavePlaylist

Declaration: Sub SavePlaylist(Path As String)

Save the playlist into a file.

Parameter:

Path Path to the playlist file.
C Prototype:

HRESULT SavePlaylist(BSTR Path);