thank you!
before I start I wanted to thank you again. As I wrote, it is working with just two problems right now:
a) JSON error
b) no artist image on IE browsers
Took me a while until I figured out how to keep the debug in the plugin on. MB was picky and turned it off for some reason. Once I changed the debug value in Settings.xml in the C:\Users\MyName\AppData\Roaming\MusicBee\EventGhost folder, it started writing a debug file.
Don't know how to add a file here, so I will paste this in here. It's not too long.
What I did. Started EG. Opened www on Phone and tapped the run MB button.
this is a log from within EG:
-----------------------------------
---> Welcome to EventGhost <---
MB.Run
MusicBee: Run MusicBee
MusicBee: Run MusicBee
MusicBee.PluginStartup
Webserver - variables initialization
Webserver: Set temporary value: mbRunning: True
Change Master Volume: 0.00 %
Webserver: Set temporary value: Volume: {eg.result}
MusicBee: Now playing command: Get artwork thumbnail: 128
Webserver: Set temporary value: thumbnail: {eg.result}
MusicBee: Player command: Get volume
Webserver: Set temporary value: VolumeLevelChanged: {str(eg.result)}
MusicBee: Player command: Get mute
Webserver: Set temporary value: mute: {("False","True")[eg.result]}
MusicBee: Now playing command: Get file tag: Album
Webserver: Set temporary value: album: {eg.result}
MusicBee: Now playing command: Get file tag: Artist
Webserver: Set temporary value: artist: {eg.result}
MusicBee: Now playing command: Get file tag: TrackTitle
Webserver: Set temporary value: trackTitle: {eg.result}
MusicBee: Player command: Get play state
Webserver: Set temporary value: playstate: {eg.result}
Webserver: Set clients flags: tracks
MusicBee: Now playing command: Get file tag: Rating
Webserver: Set temporary value: rating: {eg.result}
MusicBee: Now playing command: Get file tag: Year
Webserver: Set temporary value: year: {eg.result}
MusicBee: Now playing command: Get track info
Webserver: Set temporary value: info: {eg.result}
MusicBee: Player command: Get shuffle
Webserver: Set temporary value: shuffle: {("False","True")[eg.result]}
MusicBee: Player command: Get repeat mode
Webserver: Set temporary value: repeat: {eg.result}
Get Mute Status
Webserver: Set temporary value: sysMute: {("False","True")[eg.result]}
MB.play/pause
MusicBee: Player command: Play/Pause
MusicBee: Player command: Play/Pause
MusicBee.PlayStateChanged.Playing u"E:\Musik\L\Lisa Hannigan\Live at Fingerprints (2009)\02 - Splishy Splashy.flac"
Webserver: Set temporary value: playstate: {eg.event.suffix.split(".")[-1]}
Webserver: Set temporary value: playstate: {eg.event.suffix.split(".")[-1]}
MusicBee.TrackChanged [u'E:\\Musik\\L\\Lisa Hannigan\\Live at Fingerprints (2009)\\02 - Splishy Splashy.flac', u'Splishy Splashy\nLisa Hannigan\nLive at Fingerprints']
Webserver: Set track infos
MusicBee: Now playing command: Get file tag: TrackTitle
Webserver: Set temporary value: trackTitle: {eg.result}
MusicBee: Now playing command: Get file tag: Artist
Webserver: Set temporary value: artist: {eg.result}
MusicBee: Now playing command: Get file tag: Album
Webserver: Set temporary value: album: {eg.result}
MusicBee: Now playing command: Get file tag: Rating
Webserver: Set temporary value: rating: {eg.result}
MusicBee: Now playing command: Get file tag: Year
Webserver: Set temporary value: year: {eg.result}
MusicBee: Now playing command: Get track info
Webserver: Set temporary value: info: {eg.result}
Webserver: Set temporary value: thumbnail: {eg.result}
MusicBee: Now playing command: Get artwork thumbnail: 128
Webserver: Set temporary value: thumbnail: {eg.result}
MB.stop
MusicBee: Player command: Stop
MusicBee: Player command: Stop
MusicBee.PlayStateChanged.Stopped u"E:\Musik\L\Lisa Hannigan\Live at Fingerprints (2009)\02 - Splishy Splashy.flac"
Webserver: Set temporary value: playstate: {eg.event.suffix.split(".")[-1]}
Webserver: Set temporary value: playstate: {eg.event.suffix.split(".")[-1]}
-----------------------------------
This is the log from C:\Users\MyName\AppData\Roaming\MusicBee\EventGhost\DebugLog.txt
Note that I added two lines. 1) when the error occurred. 2) when I continued and pushed the play button
-----------------------------------
2013-11-04 19:13:20 PLUGIN STARTED - MusicBee version: 2_1; API revision: 33; Interface version: 29; Plugin version: 0.0.5
2013-11-04 19:13:20 SENDING: 0x00000000 PluginStartup|4718644
2013-11-04 19:13:23 WM_APP+1 0x00004952 0x00000080
2013-11-04 19:13:23 SENDING: 0x00004901 |iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsM
2013-11-04 19:13:23 WM_APP+1 0x00000024 0x00000000
2013-11-04 19:13:23 WM_APP+1 0x0000000d 0x00000000
2013-11-04 19:13:23 WM_APP+1 0x00004a2b 0x0000001e
2013-11-04 19:13:23 SENDING: 0x00004a01 |Live at Fingerprints
2013-11-04 19:13:23 WM_APP+1 0x00004b2b 0x00000020
2013-11-04 19:13:23 SENDING: 0x00004b01 |Lisa Hannigan
2013-11-04 19:13:23 WM_APP+1 0x00004c2b 0x00000041
2013-11-04 19:13:23 SENDING: 0x00004c01 |Splishy Splashy
2013-11-04 19:13:23 WM_APP+1 0x0000001d 0x00000000
2013-11-04 19:13:23 WM_APP+1 0x00004d2b 0x0000004b
2013-11-04 19:13:23 WM_APP+1 0x00004e2b 0x00000058
2013-11-04 19:13:23 SENDING: 0x00004e01 |2009 11 17
2013-11-04 19:13:23 WM_APP+1 0x00004f56 0x00000000
2013-11-04 19:13:23 SENDING: 0x00004f01 |FLAC 44.1 kHz, 866k, Stereo, 3:37
2013-11-04 19:13:23 WM_APP+1 0x0000000f 0x00000000
2013-11-04 19:13:23 WM_APP+1 0x0000001e 0x00000000
2013-11-04 19:13:23 WM_APP+1 0x0000503f 0x00000000
2013-11-04 19:13:23 SENDING: 0x00005003 |{"Recently Added":"E:\\Musik\\MusicBee\\Playlists\\Recently Added.xautopf","Recently Played":"E:\\M
2013-11-04 19:13:23 WM_APP+1 0x00005157 0x00000000
2013-11-04 19:13:23 SENDING: 0x00005103 |{}
2013-11-04 19:13:24 WM_APP+1 0x00005247 0x00000000
##this is where the JSON error message shows up.
##this is where I start playing the currently highlighted song by tapping the play button on the Phone.
2013-11-04 19:16:23 WM_APP+1 0x00000000 0x00000000
2013-11-04 19:16:23 SENDING: 0x00000001 PlayStateChanged.Playing|E:\Musik\L\Lisa Hannigan\Live at Fingerprints (2009)\02 - Splishy Splashy.f
2013-11-04 19:16:23 SENDING: 0x00000002 E:\Musik\L\Lisa Hannigan\Live at Fingerprints (2009)\02 - Splishy Splashy.flac|Splishy Splashy<LF>Li
2013-11-04 19:16:23 WM_APP+1 0x0000532b 0x00000041
2013-11-04 19:16:23 SENDING: 0x00005301 |Splishy Splashy
2013-11-04 19:16:23 WM_APP+1 0x0000542b 0x00000020
2013-11-04 19:16:23 SENDING: 0x00005401 |Lisa Hannigan
2013-11-04 19:16:23 WM_APP+1 0x0000552b 0x0000001e
2013-11-04 19:16:23 SENDING: 0x00005501 |Live at Fingerprints
2013-11-04 19:16:23 WM_APP+1 0x0000562b 0x0000004b
2013-11-04 19:16:23 WM_APP+1 0x0000572b 0x00000058
2013-11-04 19:16:23 SENDING: 0x00005701 |2009 11 17
2013-11-04 19:16:23 WM_APP+1 0x00005856 0x00000000
2013-11-04 19:16:23 SENDING: 0x00005801 |FLAC 44.1 kHz, 866k, Stereo, 3:37
2013-11-04 19:16:23 WM_APP+1 0x00005952 0x00000080
2013-11-04 19:16:24 SENDING: 0x00005901 |iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsM
2013-11-04 19:16:24 WM_APP+1 0x00000053 0x00000000
2013-11-04 19:16:24 WM_APP+1 0x00000053 0x00000000
2013-11-04 19:16:25 WM_APP+1 0x00000053 0x00000000
2013-11-04 19:16:26 WM_APP+1 0x00000053 0x00000000
2013-11-04 19:16:26 WM_APP+1 0x00000053 0x00000000
-----------------------------------
crossing my fingers that you'll see something that I can do to make the error go away.
not knowing what I am talking about (
) my guess is that it has to do with this line:
SENDING: 0x00005003 |{"Recently Added":"E:\\Musik\\MusicBee\\Playlists\\Recently Added.xautopf","Recently Played":"E:\\M
possibly the JSON data range is set too small for the amount of data that is there? I read up about the error message from my previous post and people posted to increase the maxJsonLength value to address problems like this. Maybe I have to refresh or clean my Recently Played list?
just wildly guessing here
edit: wow, thanks for pointing me to the debug, which let me figure this out myself!!
it is in fact the recent played list that causes the error. once I cleared my long "Now Playing" list in MB, the error message vanished. Apparently that list had more data than maxJsonLength allowed. It turns out that I didn't even notice that the "Choose track...." button showed an empty list when tapped on the phone. That was another hint that something with the Recently Played list was amiss.
edit1: turns out there is a "prune played tracks: keep the last xy tracks" under Preferences/Now Playing in MB (what a beautiful program!). My list was over 350songs long when the error showed up. Will play with the pruning value to still keep a decent Recently Played list and not cause the error.
edit2: It certainly is the Recently Played list. When I empty it and there is nothing in MB in that list it throws an error as well (can't find object).
The problem with the Json error is deeper though I think. When I play a song from the music collection the Now Playing list consists of ALL songs in my library (>50k). That is because I've set Play Now action to clear list and play all tracks. Of course your routine will choke on that and it probably wouldn't matter what size I set maxJsonLength value to. I've changed this to 'queue selected tracks and play now' which only adds the double clicked file to the list while keeping other recently played songs. This is manageable only to a certain point of course until the Json error will show up again.
Just for future reference. Where would I be able to change the maxJsonLength value to allow longer Recently Played lists?
thanks