Describe the bug
When I start sharing browser tab with audio in chrome both video and audio will be published
but when I stop sharing screen only the audio will be unpublished and video won't be unpublished
it is interesting that in this mode when I click on the Stop Sharing button of chrome that I think it uses the onended event of tracks then both audio and video will be unpublished without any problem.
it it necessary to say that when only screen share video shared then there will be no problem on publish or unpublish.
Reproduction
await this.room.localParticipant.setScreenShareEnabled(true, {
audio: {
suppressLocalAudioPlayback: false,
},
surfaceSwitching: "include",
selfBrowserSurface: "exclude",
systemAudio: "include",
suppressLocalAudioPlayback: false,
contentHint: 'text'
})
await this.room.localParticipant.setScreenShareEnabled(false)
Logs
System Info
Binaries:
Node: 25.6.1 - /usr/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 11.10.0 - /usr/bin/npm
pnpm: 10.28.1 - /home/masoud/.local/share/pnpm/pnpm
bun: 1.1.21 - /home/masoud/.bun/bin/bun
Browsers:
Chromium: 142.0.7444.175
Firefox: 147.0.3
npmPackages:
livekit-client: v2.17.1 => 2.17.1
Severity
serious, but I can work around it
Additional Information
No response
Describe the bug
When I start sharing browser tab with audio in chrome both video and audio will be published
but when I stop sharing screen only the audio will be unpublished and video won't be unpublished
it is interesting that in this mode when I click on the Stop Sharing button of chrome that I think it uses the onended event of tracks then both audio and video will be unpublished without any problem.
it it necessary to say that when only screen share video shared then there will be no problem on publish or unpublish.
Reproduction
Logs
System Info
Binaries: Node: 25.6.1 - /usr/bin/node Yarn: 1.22.22 - /usr/bin/yarn npm: 11.10.0 - /usr/bin/npm pnpm: 10.28.1 - /home/masoud/.local/share/pnpm/pnpm bun: 1.1.21 - /home/masoud/.bun/bin/bun Browsers: Chromium: 142.0.7444.175 Firefox: 147.0.3 npmPackages: livekit-client: v2.17.1 => 2.17.1Severity
serious, but I can work around it
Additional Information
No response