Streaming on apple tv from my ipad

When ipad screen goes on sleep mode the streaming on tv is interrupted. How to fix that?
When ipad screen goes on sleep mode the streaming on tv is interrupted. How to fix that?

Go to Settings > Display and Brightness and set Auto-Lock to a higher interval.

Original thread: https://forums.imore.com/threads/streaming-on-apple-tv-from-my-ipad.421213/