Coldplay frontman Chris Martin and Katy Perry were among the musicians who helped launch the Invictus Games in Canada by entertaining the crowds at the opening ceremony.