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
Declaration: Sub AddFolder(Folder As String)Add all files from a folder at the end of the playlist.
Parameter:
C Prototype:
Folder Path to the folder. HRESULT AddFolder(BSTR Folder);
Property IMVPlaylist::DefaultFrameRate
Declaration: Property Get/Put DefaultFrameRate As DoubleDefault 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 DoubleReturns the duration of the whole playlist.
C Prototype:HRESULT GetDuration(DOUBLE* value);
Method IMVPlaylist::GetItemDuration
Declaration: Function GetItemDuration(Item As Long) As DoubleGet the duration of a playlist item.
Parameter:
C Prototype:
Item Index of the video track. HRESULT GetItemDuration(LONG Item, DOUBLE* value);
Method IMVPlaylist::GetItemInfo
Declaration: Function GetItemInfo(Item As Long) As StringGet the path of a playlist item.
Parameter:
C Prototype:
Item Index of the video track. 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:
C Prototype:
Width Width of the video image. Height Height of the video image. FrameRate Framerate of the video stream. 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:
C Prototype:
Path Path to the media file. Position Position within the playlist. HRESULT InsertMediaFile(BSTR Path, LONG Position);
Property IMVPlaylist::ItemCount
Declaration: Property Get ItemCount As LongCount 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:
C Prototype:
Path Path to the playlist file. HRESULT LoadPlaylist(BSTR Path);
Declaration: Sub MoveItem(Item As Long, NewPosition As Long)Moves an item to a new position within the playlist.
Parameter:
C Prototype:
Item Index of the movie track. NewPosition New position of the track. HRESULT MoveItem(LONG Item, LONG NewPosition);
Method IMVPlaylist::RemoveItem
Declaration: Sub RemoveItem(Item As Long)Remove a item from the playlist.
Parameter:
C Prototype:
Item Index of the movie track. HRESULT RemoveItem(LONG Item);
Declaration: Sub ResetReset the playlist.
C Prototype:HRESULT Reset();
Method IMVPlaylist::SavePlaylist
Declaration: Sub SavePlaylist(Path As String)Save the playlist into a file.
Parameter:
C Prototype:
Path Path to the playlist file. HRESULT SavePlaylist(BSTR Path);