YouTube communicates the fact it is playing via APIs, in fact we don’t cloak YouTube already due to these kind of hacks.
Soundcloud has them as well Widget API - SoundCloud Developers
If wiring all the APIs is too hard I would be fine with a site setting of “don’t cloak posts with potentially playing media”, since the count is so low it probably makes no diff. Then all onebox needs to do is surface the fact that a onebox is “playable” by adding something like a playable class to the element.