1
MusicBee API / Re: MusicBee Mirror (Windows Remote Control...using MusicBee)
« on: March 14, 2023, 02:28:17 PM »are you sure the file paths are exactly the same from the client instance? If you are copying musicbeelibrary.mbl and the paths have changed, then i would expect that behaviour
Thanks for replying Steven!
To be clear, the file paths are the exact same in both MusicBee instances, however the actual files do not exist on the client instance. They only exist on the server instance.
The source not found warnings are valid, however I'd like to suppress them as they aren't relevant in my plugin's case:
Only the server MusicBee should have access to the file paths in the Library.mbl as My Windows desktop PC contains the Music and my Windows tablet does not. The client MusicBee will only have access to the Library.mbl file itself.
In future releases I was planning on using a dummy audio file on the client instance that I would dynamically generate and tag, based on the selected file for playback. So if a user selects a music file in their library for playback in the client instance of MusicBee, I would send that file path and request to the server instance of MusicBee to process/play it. I would try and trick the client instance of MusicBee to somehow mirror the server instance of MusicBee (full mirror mode), even though the client physical file doesn't exist. If the file absolutely does need to exist in order to get full mirror mode working, I would need to go down the route of creating a dummy clone of the server's music folder with all it's files and folders, and shell audio files so that the remote and local seeks sync up.
I'm trying to use a Windows Hook procedure to intercept and dismiss the popups but it's not properly hooking into the main MusicBee window. I was going to try superclassing next but it's looking like I won't be able to to intercept the file source warning popups without you exposing the event in the API.
edit: Trying DLL injection now...can you confirm if the source project is a .Net Forms application? And Can you also tell me perhaps if the dialog boxes that MusicBee creates are MessageBox objects, or Forms objects? Thank you Steven!