Problem Interpreting MMC created by Nuendo/Cubase

So bare with me - but I’m really struggling with interpreting MMC data that Nuendo is sending out. I am attempting to use the data to remote control some video switching, and therefore need to know when Nuendo is in play, play+record or stop.
It was almost too easy. I’ve been able to isolate the play / stop messages, but as soon as you add record into the mix, things get super strange.

I have some commented output from my MAXMSP console below. I’m using max for the moment - and I don’t think its a max issue. I get the same results just sniffing out the midi packets with other midi software.
I have pasted in the “state” (screen cap) of the transport buttons in cubase that I’m trying to figure out from the MMC data - to help with the explanation.

So from the top of the picture.

First up, pressing play. That makes sense. the 6th message is “2” which is what I expect. (I’m filtering out the first and last messages in the MMC string)

Then stop. 6th message is “1” which again, I’ve got a handle on!

Then I hit record and things get a bit interesting, and different to what I had expected. I get a message with a bunch of 0’s from the 6th message onwards. I also get a pretty standards play message. Which makes sense - since when you hit record while stopped in cubase, it triggers playback as well. (rec+play really)

Although not what I expected, I COULD always just match this message. But alas thats not to be.

First up - I hit stop, and although everything stops in cubase, I get the record message again. No stop message. Fine - I can do some matching and figure it out - but it already seems super strange.

Then comes the thing I cannot fathom.

I hit record (from stop) and again get the command I feel is record, followed by a play. Then if I hit the record button again (which should just turn off record, and keep playing in cubase) I get the record message again - exactly the same as before. However, the state of cubase is completely different - its still playing back! Indeed, if I hit stop now, I get what I would expect is a stop command.

So there’s no way of telling what state cubase is in given these MMC commands. It COULD be in playback, or stopped.

I’m figuring I might be approaching this all the wrong way, but I really can’t find any info from folk that have done anything outside of rewire. I unfortunately cannot use rewire on this occasion.

Does anyone have any further ideas? I’m really stumped by this one.