Dual Screen (AppleTV)

I am looking to create an app utilising apple TV and Dual Screens.

Apple TV will duplicate the screens, but at stages I need the display on the iDevice to be different to what is displaying on the TV.

I have seen some examples of this on youtube, but am struggling to find any documentation as to how to go about this process.

Can anyone shed some light on this?

Thanks