This message was deleted.
# helpdesk
s
This message was deleted.
d
Can you describe what your application is trying to do? The warning indicates you've published multiple tracks with the same
Source
field. are you sharing multiple screen shares?
w
Our application is very alike to a common video conferencing tool. It offers multiple users to share screens. We get an error when user stops then starts the screen share the second time. I’m currently using livekit 1.2x, When I trace the issue I see that, the screen share publication drops from local participant. But it remains on remote participants. And somehow, there is no track underneath this publication. When user shares screen second time, livekit throws a warning “received a second track publication for xxxx with the same source: screen_share” and generates a second publication with proper track in it. When I call participant.getTrack(Track.Source.ScreenShare) function, livekit gives me the first screen share publication that doesn’t have the track in it. And this causes issue on our application. I compared the process with 0.15x. On 0.15x, when a remote participant stops the screen share, screen share publication is being dropped from both local and remote participants. So not matter how many times a user shares the screen, it causes no issues.
Hello @dry-elephant-14928, We tested with several server versions, so 1.0.x works perfectly but after upgrade to 1.1x or higher we're facing with this issue.
d
are you unpublishing the previous track prior to publishing again? the error would show if unpublish was not performed.
w
we're found the problem when we're set the
TrackPublishDefaults.videoCodec
to h264 this is happen when we're back to vp8 everythings fine.
d
ah, yes! I believe this issue was just fixed. we'll have a release out with it later today