Can you get reimbursed if there are defects on the flight equipment?

So, I don't intend to fly ever, so I know nothing about this topic.

But I keep hearing how awful flight companies are.

So my question is, if your flight-TV-thingy is not working, or the screen freezes, can you ask for some sort of compensation? Like at least part of your costs reimbursed?

Or if you book a window seat and there ends up being no window?

Or if someone asks you to switch seats, could you ask for the money of choosing seats back? At least if the flight attendant guilts you into agreeing to switch.