At least in Canada, you're only allowed to have headphones on if they're earbuds (easy to quickly remove) and connected to the in-flight sound system (so you still hear announcements). I haven't paid attention to the onboard safety dance in ages, so I don't recall what it is elsewhere.