INTERACT FORUM
More => Old Versions => Media Center 12 (Development Ended) => Topic started by: Messiahs on January 19, 2008, 12:38:27 pm
-
please can you add two new functions to IMJCurPlaylistAutomation ?
because:
Dim MJFiles As IMJFilesAutomation = MJFilesAutomation.Search("~d=t")
doesn't work (see here: http://yabb.jriver.com/interact/index.php?topic=42512.msg295287#msg295287)
perhaps you can add something like this:
'same like MJFileAutomation * GetFileByKey(number nKey)
MJFiles = MJCurPlaylist.GetFilesByKey(sFileKey)
or
boolean = MJCurPlaylist.CheckIfFileIdIsAlreadyInPlaynowQueue(sFileKey)
and
'gets all playing now Files
MJFiles = MJCurPlaylist.GetAllFiles()
or please correct:
Dim MJFiles As IMJFilesAutomation = MJFilesAutomation.Search("~d=t")
regards
Messiahs
-
I'm not sure I understand what you're trying to do, but if you just want to search a files collection for a certain key, you could write your own function with a for loop. If you're doing multiple lookups, build an index / map.