Is there any way to set a volume limit on an iOS devices built in speakers? Volume limit only seems to work with headphones.

Any ideas?