Huawei has turned one of its phones into a dog-collision avoidance system for cars as part of an unusual publicity campaign.

The Chinese firm invited BBC's Rory Cellan-Jones to try out the artificial intelligence feature for himself at the Mobile World Congress trade show in Barcelona.