How do I distinguish the first in pair and second in pair in pair end bam using XAM?

I thought the following video neatly linked the flag back to the SAM Format Specification.