steep-balloon-41261
07/06/2023, 7:23 PMdry-elephant-14928
07/07/2023, 6:52 AM<script src="<https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js>"></script>full-dog-23669
07/07/2023, 11:57 AM<script src="<https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js>"></script>
<script>
// creates a new room with options
const room = new Room({
// automatically manage subscribed video quality
adaptiveStream: true,
// optimize publishing bandwidth and CPU for published tracks
dynacast: true,
// default capture settings
videoCaptureDefaults: {
resolution: VideoPresets.h720.resolution,
},
});
</script>dry-elephant-14928
07/07/2023, 5:25 PMLivekitClient., i.e. LivekitClient.Roomfull-dog-23669
07/24/2023, 6:48 PMdry-elephant-14928
07/24/2023, 8:04 PMsetLogLevel('debug') so we can see what's going on.
2. Yeah, you can access the current publishing bitrate via LocalTrack.currentBitrate, and receiving bitrate via RemoteTrack.currentBitrate . Getting the FPS is a bit more convoluted, I've attached a snippet of how it can be retrieved from a RemoteVideoTrack object.
3. Yes, there are no additional charge in order to scale to 100k. You'll be able to request higher concurrent limits with a paid plan. more details here
const stats = await remoteVideoTrack.receiver.getStats();
stats.forEach((val: any) => {
if (val.type === "inbound-rtp") {
if (val["framesPerSecond"]) {
console.log('current fps', val["framesPerSecond"]);
}
}
});full-dog-23669
07/25/2023, 1:39 PMdry-elephant-14928
07/31/2023, 9:48 PMfull-dog-23669
09/12/2023, 2:37 PMfull-dog-23669
09/12/2023, 4:31 PMfull-dog-23669
09/13/2023, 9:47 AMdry-elephant-14928
09/14/2023, 5:52 AM