steep-balloon-41261
01/15/2023, 4:43 PMpolite-kilobyte-67570
01/16/2023, 10:12 AMset*Enabled effectively only mutes a track, so you won’t get trackUnpublished events. If you need to unpublish tracks you would do so by calling localParticipant.unpublishTrack(track)
2. the recommended approach is to restrict this via the token grants.
3. that’s just an artifact of the fact that LocalTrackPublication inherits from TrackPublication . it does not consume any additional bandwidth.
4. That’s a good point, we’ll have some news this week about a new - more consistent - approach to this.
5. For remote tracks you can do so via track.setVolume (you can even do this on the remoteParticipant.setVolume . for local tracks it’s a bit more tricky and we haven’t exposed any APIs (yet) to make that happen out of the box
6. cc @acoustic-engineer-41666strong-kite-90563
01/16/2023, 11:29 AMsetEnable(false) vs unpublish(track)? More importantly, for the first one, when muted, does it also transmit 0 bandwidth?
2. Got it.
3. Ok
4. Can't wait for it 🙂
5. Ok will wait for this feature to adjust volume from publisher side.
More questions:
7. Say if I want to manually call localParticipant.unpublishTrack(track) , does it affect livekit features such as `adaptiveStream`/`dynacast`/`simulcast`
8. Is it possible to get the actual display resolution of a published video track? For example, the user might select 720p, but if the user does not have a camera with that quality, the actual displayed quality would be say 480p. It would then be useful to display this quality value to the publisher so that they know.
9. How to set/change device after creating/published track?polite-kilobyte-67570
01/16/2023, 1:20 PMset*Enabled are convenience methods that take care of that for you.
8. https://docs.livekit.io/client-sdk-js/classes/LocalVideoTrack.html#dimensions
9. https://docs.livekit.io/client-sdk-js/classes/Room.html#switchActiveDevicestrong-kite-90563
01/16/2023, 2:20 PMstrong-kite-90563
01/16/2023, 3:03 PMadaptiveStream, dynacast and simulcast are active? My setup is like this:
useRoom({
adaptiveStream: true,
dynacast: true,
publishDefaults: {
simulcast: true,
},
});
For example when I check localVideoTrack?.isSimulcast it returns false event though I set it to true.strong-kite-90563
01/16/2023, 3:06 PMpolite-kilobyte-67570
01/16/2023, 3:25 PMstrong-kite-90563
01/16/2023, 3:43 PMawait room?.localParticipant.enableCameraAndMicrophone(); and manually
const videoTrack = await createLocalVideoTrack({
facingMode: "user",
resolution: VideoPresets.h720,
});
await room.localParticipant.publishTrack(videoTrack);
, both on chrome. and isSimulcast still returns false. Other than that, how can I check for adaptiveStream and dynacast as well?strong-kite-90563
01/16/2023, 4:00 PMRemoteTrackPublication.videoDimension but its protected, I tried ``RemoteTrackPublication.videoQuality`` but its a single digit like 2. Possible to get width+height like 1080p or 720p?strong-kite-90563
01/17/2023, 3:01 AMlist-rooms or list-participant , does it count towards the API rate request limit? https://docs.livekit.io/cloud/quotas-and-limits/#api-rate-requests