How can i create screen cast extension

Hiw can i make a extension that can screen cast without going to settings cast (thank you god bless you.)