Added check for mobile platform for playing sound.