ReadonlyLabelThe browser's label for the shared surface, such as a window or tab title.
Optional ReadonlyPanelThe shared panel's name, for a panel capture that was given one (DisplayCaptureOptions.PanelLabel).
Optional ReadonlyPanelHow the stream was narrowed, for a panel capture.
ReadonlyStreamReadonlySurfaceWhat is being shared now. It can change if the user switches surfaces mid-share.
ReadonlyTrackThe shared video track.
Calls handler once when the share ends: the user pressed the browser's "Stop sharing", the shared
surface closed, or DisplayCapture.Stop was called. If the share has already ended, handler is
called at once.
A function that removes the handler.
Stops sharing. Calling it again does nothing.
A live share.