I would assume that the problem is that the player is not using whatever standard API allows other players and Firefox to block sleep while playing music. I’d guess it’s probably on their end, but that’s just a guess without investigating too closely.
Assuming that’s correct, your workaround is probably the best option unless they implement support for this signalling