The structural, optical, and electrical transformations induced by hydrogen absorption and/or desorption in Mg-Ti thin films prepared by co-sputtering of Mg and Ti are investigated. Highly reflective in the metallic state, the films become highly absorbing upon H absorption. The reflector-to-absorber transition is fast, robust, and reversible over many cycles. Such a highly absorbing state hints at the coexistence of a metallic and a semiconducting phase. It is, however, not simply a composite material consisting of independent MgH2 and TiH2 grains. By continuously monitoring the structure during H uptake, we obtain data that are compatible with a coherent structure. The average structure resembles rutile MgH2 at high Mg content and is fluo...