How Live stream the macOS Screen in Swift macOS app

I am trying to build a macOS application. I want to view the live screen of the mac from a web application. Which apple framework SDK will be used for screen recording and live stream?