Cadmium bromide is a chemical compound . Cadmium bromide is prepared by heating cadmium with bromine vapor . Also the compound can be prepared by the treatment of dry cadmium acetate with glacial acetic acid and acetyl bromide .