When I play a movie from iTunes, screen mirroring does not work.

Apple has HDCP DRM protection for playing iTunes movies. This means that they also block screen mirroring when watching movies from iTunes. Unfortunately, there is nothing we can do about it.