steep-balloon-41261
03/28/2022, 9:24 AMpolite-kilobyte-67570
03/28/2022, 10:46 AMRoomOptions
const roomOpts: RoomOptions = {
publishDefaults: {
simulcast,
videoSimulcastLayers: [
VideoPresets.h90,
VideoPresets.h216,
],
},
All local (camera) tracks will then be published with those simulcast layers.
If this isn’t sufficient for your usecase, could you elaborate a bit on what your usecase looks like?incalculable-tent-21960
03/28/2022, 11:30 AMconst {connect} = useRoom();
...
await connect(url, token, {...roomOpts})
But I don't think we can change pass the videoSimulcastLayers in the ConnectOptions so incase of using the connect from livekit-react how can we use the simulcast?polite-kilobyte-67570
03/28/2022, 12:30 PMincalculable-tent-21960
03/28/2022, 1:17 PMconst track = createLocalVideoTrack({deviceId: id})
room.localParticipant.publishTrack(track)
When creating the track I don't need to specify any resolution right, for the simulcast?(I did use the useRoom(roomOpts) and called const room = await connect())incalculable-tent-21960
03/28/2022, 1:34 PMpolite-kilobyte-67570
03/28/2022, 2:02 PM