INTERACT FORUM
Windows => Plug-in Development => Topic started by: Cephlen on October 07, 2002, 10:38:49 am
-
number Position() (read / write)
Description: the index of the current track
Is it just me, or is there no property for CMJCurPlaylistAutomation called number as it says in the docs for the tlb?
Im just trying to get information on the currently playing file...
was thinking of going like:
GetCurrentPlaylist
Get number of file being played
GetFile using above number of file being played
get information on that file
-
This is how I do it in AV2 (C++) if it helps:
// Get the playlists handle
IMJCurPlaylistAutomationPtr pMJCurrentPlaylist = m_pMJ->GetCurPlaylist();
// Get the currently playing index
long lCurrentlyPlaying = pMJCurrentPlaylist->GetPosition();
// Get what's playing now
IMJFileAutomationPtr pMJFile = pMJCurrentPlaylist->GetFile( lCurrentlyPlaying );
-
Yeah, that did the trick. Thanks Rhino.
I wonder if the tlb documents on this site are outdated..
-
I think the TLB file is installed in your MJ installation directory.