Well, my answer will differ from the other excellent answers but here goes:
Our son has always had a really difficult time with morning/afterschool transitions and tasks. (He has some profound attention issues). Because I got tired of telling him what to do each morning, I started making "20 Minute Media Tickets" complete with a checklist on each one; he gets one for morning and one in the afternoon (this one includes homework and setting the table and one other household task). This means he's checking his list, which is the incentive ticket, and completing it independently. Once it's done, I will initial it and the ticket goes into a bowl where they are collected until they are 'spent'. I also give him 5 min tickets for doing things which can be challenging for him or generally noticing characteristics we'd like to see and good effort.
I will say that for the most part, we choose to limit media because he does have a tendency to hyperfocus and the longer we let him just sit and play or watch, the more we see him having a harder time with transitioning afterward. We are encouraging him to take breaks during his media time. Say, 20 minutes of a video game and yes, you can have another 20 minutes after we go for a walk, or maybe two episodes of Scooby Doo and we'll think about some extra time after we play/do XYZ and see how things are going.
I think every parent has to do what works for their specific kid. Because mine hyperfocuses, you won't see him building legos while watching tv-- he just can't. It's one or the other, so we have to give him some structure and really, for us, using the tickets as an incentive for learning the routines has been effective. Everyone will incorporate media into their family's life-- nothing wrong with that-- and we all have methods which work best for our own situations.