Screen share stream not have a good quality (Jitsi Meet API)

I have implement the share screen feature, using the lib-jitsi-meet.js.
It was simple replace the camera track by desktop track, but it not have a good resolution.
Event I try to set the config to:

testing: {
   capScreenshareBitrate: 1,
resizeDesktopForPresenter: true

Also when turn share screen off by click on browser popup, there is any way to catch that event?
It currently just stop my stream and not turn camera back.

Thanks for reading.