Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Thanks Colin,
    Probably a good idea, as I always learn from your examples.

  2. #17
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    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.

  3. #18
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    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
    Attached Files Attached Files
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #19
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    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

  5. #20
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    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
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #21
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    Click Open URL on any of those and the Groove Player interface opens on my PC.
    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.

  7. #22
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    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.

  8. #23
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    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
    Click image for larger version. 

Name:	wmp.jpg 
Views:	9 
Size:	158.1 KB 
ID:	45760

  9. #24
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Congratulations. Is the sound quality good enough for you using WMP?
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  10. #25
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    1,919
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using Windows Media Player in Access Form.
    By Miles R in forum Forms
    Replies: 3
    Last Post: 03-05-2021, 12:49 PM
  2. Windows media player Add to playlist
    By anchamal in forum Forms
    Replies: 0
    Last Post: 10-09-2013, 06:34 AM
  3. Compare player results
    By Andyjones in forum Queries
    Replies: 3
    Last Post: 05-19-2012, 05:59 AM
  4. Windows Media Player Control
    By dalematt in forum Forms
    Replies: 1
    Last Post: 11-18-2011, 06:20 PM
  5. windows media player
    By ksmith in forum Programming
    Replies: 3
    Last Post: 09-20-2011, 12:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums