Here is the solution I got for similar problem...
you just keep your media volume to 3 quarter or half the way...
It really worked perfectly for me...
My problem was with JIO Music ( hopefully most online music portal work same)
Music was pausing frequently while connecting to car using aux...