I'm new here, but I thought this must have been
done by now: I'd like to access the MJ master
database directly, to get titles, artist name, etc.
Is this possible? If so, has source been posted?
mi
Here is a sample. It is my first MC development, so probably things could be made better, but it works. It is written in Visual Basic .NET
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim n As Int32
Dim i As Int32
Dim mc As MediaJukebox.IMJAutomation
Dim fs As MediaJukebox.IMJFilesAutomation
Dim f As MediaJukebox.IMJFileAutomation
mc = New MediaJukebox.MJAutomation()
fs = mc.GetViewScheme("Audio").GetFiles
n = fs.GetNumberFiles
Me.ProgressBar1.Maximum = n
Me.ProgressBar1.Minimum = 0
Me.ProgressBar1.Value = 0
For i = 0 To n - 1
f = fs.GetFile(i)
Debug.WriteLine f.Artist & " - " & f.Name
Me.ProgressBar1.Value = i
Me.Refresh()
Next
End Sub