Shared screen turns black in peer to peer mode

I am facing an issue while sharing screen with video in peer-to-peer mode. Without video, the shared screen is visible but with video, the whole screen turns black. this is happening in p2p only. please help