INTERACT FORUM

Windows => Plug-in Development => Topic started by: Cephlen on October 07, 2002, 10:38:49 am

Title: CMJCurPlaylistAutomation.Number?
Post 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

Title: Re: CMJCurPlaylistAutomation.Number?
Post by: RhinoBanga on October 07, 2002, 10:55:47 am
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 );

Title: Re: CMJCurPlaylistAutomation.Number?
Post by: Cephlen on October 07, 2002, 11:07:11 am
Yeah, that did the trick.  Thanks Rhino.


I wonder if the tlb documents on this site are outdated..

Title: Re: CMJCurPlaylistAutomation.Number?
Post by: RhinoBanga on October 07, 2002, 01:06:38 pm
I think the TLB file is installed in your MJ installation directory.