Jamie Dacosta yawned and laughed as his videos threatening to slit the prime minister's throat and harm his family were played in the Calgary courtroom.