Thanks Colin,
Probably a good idea, as I always learn from your examples.
Thanks Colin,
Probably a good idea, as I always learn from your examples.
I'll dig into the questions you pose in a day or so, as my time for the next couple of days has been preempted by lingering issues relating to our physical move. Stay tuned.
Hi Bill
See attached. As mentioned its been several years since I looked at this. The original was written by a Greek member of an Access forum ... possibly John AKA @Accesstos
You will need to clear any existing media files from the tables.
Form frmWMP is used as the media plater. Form frmMovies is used to enter/edit the location (URL) of the audio/video file.
Interestingly, when I click on the OpenURL button for a media file, the Groove Player opens
Thanks Colin. I downloaded your app and installed it.
I replaced all of your tabled files with a few of my own and played them without any code changes whatsoever . It didn't take me long to recognize the use of the table's "Priority" property to control order in which the files are played. Hence, I will be able to be very explicit as I load the playlist with ordered movements of a 4 movement symphony. Likewise for any of the other music that is structured that way, concertos, etc..
I did see Groove in the "Processes" list of the Task Mgr but I don't see it clocking any resources. How did you determine that it is the Groove player that launches behind frmWMP when you start Play?
I will move forward to incorporate the resources you've sent me into the library manager app (see post #8). That app will selectively load the WMP playlist and launch, with your blessings, a modified version of your frmWMP.
BTW, a newbie to me showed up in your code! How does "Private WithEvents wmp As WindowsMediaPlayer" fit into the scheme of things?
Thanks again for your invaluable help!
Bill
The files in frmWMP seem to play using WMP as you'd expect.
However, clicking Add File launches the other form, confusingly named frmMovies.
Click Open URL on any of those and the Groove Player interface opens on my PC.
I would have to review the code before I can explain any of it after such a long time.
No time to do that at the moment
Remember the original app wasn't mine nor were the object names used.
The code mentions Tassos Filoxenidis who is I believe forum member @accesstos - but I haven't yet found the original thread
Yes, on my machine as well. With Microsoft's acquisition of Groove, I believe in the not too distant past, I can't help but wonder if it's actually the Groove player software under the covers of the Windows Media Player. Perhaps someone following the thread can shed some light on that question.Click Open URL on any of those and the Groove Player interface opens on my PC.
I'm still working on this. The Playlist creation out of my music library app is done, but that's outside the scope of the OP.
As some other "Google'ers" have discovered, one cannot build a Groove Music playlist outside of Groove. However, as Colin's sample form clearly shows, it's a fairly easy thing to do with WMP. I'm still trying to figure out which of the two "identical", at least in name, "Windows Media Player" references is the appropriate one to select so object references in code resolve correctly. Colin's sample form has other object elements that are obscuring things a bit. Anyway, I'll post the code I end up with when I can focus some time on the issue.
Turns out to be rather simple. My "frmWMP" code with playlist having already been loaded:
Code:Option Compare Database Option Explicit Dim intNumFiles As Integer 'From OpenArgs, the number of files in global playlist array Dim I As Integer 'Index for our playlist array Private WithEvents wmp As WindowsMediaPlayer Private Sub Form_Open(Cancel As Integer) If IsNull(Me.OpenArgs) Then MsgBox "Nu SNIP Me.Caption = strWMPCaption End Sub Private Sub Form_Load() Dim playlist As WMPLib.IWMPPlaylist Set wmp = Me.WMPAx.Object With wmp.settings .autoStart = False .enableErrorDialogs = True End With Set playlist = wmp.newPlaylist("myPlayList", "") For I = 1 To intNumFiles playlist.appendItem wmp.newMedia(strURL(I)) Next I wmp.currentPlaylist = playlist End Sub
I think perhaps iTunes player is a bit better, but one has to be totally within iTunes and that's out of the question with what I already have. Anyway, iTunes is really tailored to single track compositions. And, while I've created multi-track playlists in iTunes to accommodate the movements of a symphony, it's a pain in the posterior. I also think the Groove player seems to do a better job in the lower frequencies, but my hearing these days has deteriorated to where I would not be the best judge.
If Groove could handle wild cards, my app could easily put something like "D:\MCat-FilesLib\CD-0131\*.mp3" on the win clipboard and I could paste that into groove, but such a move isn't supported by Groove.