This message was deleted.
# sdk-rust
s
This message was deleted.
e
publishing like this:
Copy code
let video_track = new LocalVideoTrack(mediaStreamTrack, undefined, true);
video_track.source = Track.Source.ScreenShare;
this.screenshareVideoTrack = video_track;
this.room.localParticipant.publishTrack(video_track, {
    name: this.screenshareStreamUUID,
    videoCodec: "vp9"
});
the video stream isn't received by other participants
using
livekit-client
1.12.3
(webcam streams work fine)
webcam stream published like this:
Copy code
await this.room.localParticipant.setCameraEnabled(true, undefined, {
    name: this.webcamStreamUUID,
});
it also works if I use
vp8
or
h264
also doesn't work if I publish like this:
Copy code
this.room.localParticipant.setScreenShareEnabled(true, undefined, {
    name: this.screenshareStreamUUID,
    videoCodec: "vp9"
});
the
setCameraEnabled
call doesn't specify a codec because it's specified in the room settings:
Copy code
this.room = new Room({
    adaptiveStream: false,
    dynacast: true,
    videoCaptureDefaults: {
        resolution: VideoPresets.h1080.resolution,
    },
    publishDefaults: {
        videoCodec: "vp9",
        videoEncoding: {
            maxBitrate: 10_000_000,
            maxFramerate: 30,
        },
        backupCodec: {
            codec: "vp9",
            encoding: {
                maxBitrate: 10_000_000,
                maxFramerate: 30,
            },
        },
    },
});
b
VP9 is not supported by the Rust SDK PR are accepted! Some tips: 1. Make sure
rtc_libvpx_build_vp9=true
is enabled inside the libwebrtc build scripts 2. We use custom encoders/decoders implementation, so you will need to add the default VP9 impl inside it With 1 & 2, simulcast VP9 should directly work. If you want SVC support, you can take a look at how the client-sdk-js is doing it (requires to edit the Rust LiveKit implementation)
e
sorry, it was my mistake to post it on the #C04G4GE0RGX channel, the issue is browser to browser, no rust in the loop
👍 1
but thank you for the notes on the vp9 support on the rust side!
I'll work on it once the browser-to-browser thing works
🙌 1
b
Cc @dry-elephant-14928 (browser issue) VP9 should work
👍 1