What are your rights in traffic stops?

A viral video shows that police erroneously claimed that personal recording is illegal.