Get name of active NLA strip?

Hi, I have a few actions lined up in the NLA editor, and a text object in my 3D viewport that is supposed to display the name of the NLA strip that is currently playing. I am able to get the name of the currently selected action in the dopesheet, but getting the name of the active NLA strip doesn’t seem to be so easy.

I was expecting that something like this would work, but it doesn’t.



The documentation isn’t helping either, but maybe one of you can.