Questions about screen sharing

I am using a version that requires a plugin. If I want to share screen without using a plugin, where should I modify this part of the code

Waiting for answer

It is recommended to update as there were many improvments to the code … The changes you need to incorporate are these two PRs: