This message was deleted.
# helpdesk
s
This message was deleted.
l
There is my room options
Copy code
roomOptions: {
    // adaptiveStream: true,
    adaptiveStream: {
        pauseVideoInBackground: false,
        pixelDensity: 'screen',
    },
    publishDefaults: {
        simulcast: true,
        videoSimulcastLayers: [
            new VideoPreset(160, 90, 30_000, 5),
            new VideoPreset(384, 216, 240_000, 25)
        ],
        videoEncoding: {
            maxBitrate: 600000,
            maxFramerate: 25,
        },
        screenShareSimulcastLayers: [
            ScreenSharePresets.h360fps3,
            ScreenSharePresets.h720fps5,
            ScreenSharePresets.h1080fps15
        ]
    },
    // dynacast: true,
    videoCaptureDefaults: {
        resolution: VideoPresets.h540.resolution
    },
},
Now, i will try updating version from 1.9.5 to version when screenShareSimulcastLayers starts working and check the issue, but it would be nica if it works on last version
p
how are you constructing the screen share tracks? related recent PRs: https://github.com/livekit/client-sdk-js/pull/796 https://github.com/livekit/client-sdk-js/pull/809
l
#809 fixed issue with obs camera (becase i see it on 1.12.1) but screen triggered muted unmed For screen share i use await this.roomLiveKit.localParticipant.setScreenShareEnabled(!this.roomLiveKit.localParticipant.isScreenShareEnabled);
setScreenShareEnabled function only, without createLocalScreenTracks @polite-kilobyte-67570
@polite-kilobyte-67570 If i understand correct i need to rewrite my code and use "*createLocalScreenTracks*" ?
p
hm. no.
setScreenShareEnabled
should work out of the box. If not, then something else is wrong.
l
@polite-kilobyte-67570 Also this works fine for 2 users, and become muted only with 3 or more users. I starts sharing on windows 10 , browser chrome
Could you tell me what to do? Thanks
@polite-kilobyte-67570 Have you checked my issue?
p
I haven’t had a chance to look at this yet. Would it be possible for you to create a stripped down example that show cases the issue ? We’ll need a way to reproduce it to further debug what might be going on there.