You will most likely find that your OS gives you a black square for the DRM content when you record the screen. This is facilitated by OS support on Windows, iOS, etc.
It’s also why HDCP exists to prevent capture from HDMI etc.
It’s also why HDCP exists to prevent capture from HDMI etc.