Christchurch shootings: Social media races to stop attack footage

Why was a video of the shootings shared on social media and what can be done about the wider threat?