INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: CMJCurPlaylistAutomation.Number?  (Read 1431 times)

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
CMJCurPlaylistAutomation.Number?
« 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

Logged
All ICQ's are ignored unless I have added you.

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re: CMJCurPlaylistAutomation.Number?
« Reply #1 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 );

Logged

Cephlen

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 98
  • someday I will find a pic that looks good...
Re: CMJCurPlaylistAutomation.Number?
« Reply #2 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..

Logged
All ICQ's are ignored unless I have added you.

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re: CMJCurPlaylistAutomation.Number?
« Reply #3 on: October 07, 2002, 01:06:38 pm »

I think the TLB file is installed in your MJ installation directory.
Logged
Pages: [1]   Go Up