Skip to content

ScreenShareAddedEvent

Lejla Solak edited this page Feb 10, 2025 · 3 revisions



getTrack()

Description

Getter for the track field.

Arguments

  • none

Returns

  • RTCVideoTrack - The value of the track field, which represents the local screenshare video track.

Example

WebrtcCallEventListener webrtcCallEventListener = new DefaultWebrtcCallEventListener() {
    @Override
    public void onScreenShareAdded(ScreenShareAddedEvent screenShareAddedEvent) {
        RTCVideoTrack localScreenShareTrack = screenShareAddedEvent.getTrack();
    }
};

Tutorials

Migration guides

Reference documentation

Clone this wiki locally