livekit-client
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -168,2 +168,8 @@ import type { Track } from './Track'; | ||
suppressLocalAudioPlayback?: boolean; | ||
/** | ||
* Experimental option to instruct the browser to offer the current tab as the most prominent capture source | ||
* @experimental | ||
* @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#prefercurrenttab | ||
*/ | ||
preferCurrentTab?: boolean; | ||
} | ||
@@ -170,0 +176,0 @@ export interface AudioCaptureOptions { |
@@ -168,2 +168,8 @@ import type { Track } from './Track'; | ||
suppressLocalAudioPlayback?: boolean; | ||
/** | ||
* Experimental option to instruct the browser to offer the current tab as the most prominent capture source | ||
* @experimental | ||
* @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#prefercurrenttab | ||
*/ | ||
preferCurrentTab?: boolean; | ||
} | ||
@@ -170,0 +176,0 @@ export interface AudioCaptureOptions { |
{ | ||
"name": "livekit-client", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "JavaScript/TypeScript client SDK for LiveKit", | ||
@@ -5,0 +5,0 @@ "main": "./dist/livekit-client.umd.js", |
@@ -737,3 +737,16 @@ import { | ||
if (track.source === Track.Source.ScreenShare && videoCodec === 'vp9') { | ||
opts.scalabilityMode = 'L1T3'; | ||
// Chrome does not allow more than 5 fps with L1T3, and it has encoding bugs with L3T3 | ||
// It has a different path for screenshare handling and it seems to be untested/buggy | ||
// As a workaround, we are setting contentHint to force it to go through the same | ||
// path as regular camera video. While this is not optimal, it delivers the performance | ||
// that we need | ||
if ('contentHint' in track.mediaStreamTrack) { | ||
track.mediaStreamTrack.contentHint = 'motion'; | ||
this.log.info('forcing contentHint to motion for screenshare with VP9', { | ||
...this.logContext, | ||
...getLogContextFromTrack(track), | ||
}); | ||
} else { | ||
opts.scalabilityMode = 'L1T3'; | ||
} | ||
} | ||
@@ -740,0 +753,0 @@ // set scalabilityMode to 'L3T3_KEY' by default |
@@ -193,2 +193,9 @@ import type { Track } from './Track'; | ||
suppressLocalAudioPlayback?: boolean; | ||
/** | ||
* Experimental option to instruct the browser to offer the current tab as the most prominent capture source | ||
* @experimental | ||
* @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#prefercurrenttab | ||
*/ | ||
preferCurrentTab?: boolean; | ||
} | ||
@@ -195,0 +202,0 @@ |
import { TrackEvent } from '../events'; | ||
import type { AudioReceiverStats } from '../stats'; | ||
import { computeBitrate } from '../stats'; | ||
import type { AudioReceiverStats } from '../stats'; | ||
import type { LoggerOptions } from '../types'; | ||
@@ -5,0 +5,0 @@ import { isReactNative, supportsSetSinkId } from '../utils'; |
@@ -186,2 +186,3 @@ import { TrackPublishedResponse } from '@livekit/protocol'; | ||
systemAudio: options.systemAudio, | ||
preferCurrentTab: options.preferCurrentTab, | ||
}; | ||
@@ -188,0 +189,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
5691154
51086