New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

livekit-client

Package Overview
Dependencies
Maintainers
21
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

livekit-client - npm Package Compare versions

Comparing version 1.13.4 to 1.14.0

2

dist/src/room/events.d.ts

@@ -215,3 +215,3 @@ /**

* audio elements. However, if that fails, we'll notify you via AudioPlaybackStatusChanged.
* `Room.canPlayAudio` will indicate if audio playback is permitted.
* `Room.canPlaybackAudio` will indicate if audio playback is permitted.
*/

@@ -218,0 +218,0 @@ AudioPlaybackStatusChanged = "audioPlaybackChanged",

@@ -137,3 +137,7 @@ import type { Track } from './Track';

};
/** capture resolution, defaults to full HD */
/**
* capture resolution, defaults to screen resolution
* NOTE: In Safari 17, specifying any resolution at all would lead to a low-resolution
* capture. https://bugs.webkit.org/show_bug.cgi?id=263015
*/
resolution?: VideoResolution;

@@ -226,5 +230,5 @@ /** a CaptureController object instance containing methods that can be used to further manipulate the capture session if included. */

/**
* scalability modes for svc, only supprot l3t3 now.
* scalability modes for svc.
*/
export type ScalabilityMode = 'L3T3' | 'L3T3_KEY';
export type ScalabilityMode = 'L1T3' | 'L2T3' | 'L2T3_KEY' | 'L3T3' | 'L3T3_KEY';
export declare namespace AudioPresets {

@@ -231,0 +235,0 @@ const telephone: AudioPreset;

@@ -215,3 +215,3 @@ /**

* audio elements. However, if that fails, we'll notify you via AudioPlaybackStatusChanged.
* `Room.canPlayAudio` will indicate if audio playback is permitted.
* `Room.canPlaybackAudio` will indicate if audio playback is permitted.
*/

@@ -218,0 +218,0 @@ AudioPlaybackStatusChanged = "audioPlaybackChanged",

@@ -137,3 +137,7 @@ import type { Track } from './Track';

};
/** capture resolution, defaults to full HD */
/**
* capture resolution, defaults to screen resolution
* NOTE: In Safari 17, specifying any resolution at all would lead to a low-resolution
* capture. https://bugs.webkit.org/show_bug.cgi?id=263015
*/
resolution?: VideoResolution;

@@ -234,5 +238,5 @@ /** a CaptureController object instance containing methods that can be used to further manipulate the capture session if included. */

/**
* scalability modes for svc, only supprot l3t3 now.
* scalability modes for svc.
*/
export type ScalabilityMode = 'L3T3' | 'L3T3_KEY';
export type ScalabilityMode = 'L1T3' | 'L2T3' | 'L2T3_KEY' | 'L3T3' | 'L3T3_KEY';
export declare namespace AudioPresets {

@@ -239,0 +243,0 @@ const telephone: AudioPreset;

{
"name": "livekit-client",
"version": "1.13.4",
"version": "1.14.0",
"description": "JavaScript/TypeScript client SDK for LiveKit",

@@ -5,0 +5,0 @@ "main": "./dist/livekit-client.umd.js",

@@ -124,3 +124,6 @@ <!--BEGIN_BANNER_IMAGE-->

function handleLocalTrackUnpublished(publication: LocalTrackPublication, participant: LocalParticipant) {
function handleLocalTrackUnpublished(
publication: LocalTrackPublication,
participant: LocalParticipant,
) {
// when local tracks are ended, update UI to remove them from rendering

@@ -258,3 +261,3 @@ publication.track.detach();

LiveKit will attempt to autoplay all audio tracks when you attach them to audio elements. However, if that fails, we'll notify you via `RoomEvent.AudioPlaybackStatusChanged`. `Room.canPlayAudio` will indicate if audio playback is permitted. LiveKit takes an optimistic approach so it's possible for this value to change from `true` to `false` when we encounter a browser error.
LiveKit will attempt to autoplay all audio tracks when you attach them to audio elements. However, if that fails, we'll notify you via `RoomEvent.AudioPlaybackStatusChanged`. `Room.canPlaybackAudio` will indicate if audio playback is permitted. LiveKit takes an optimistic approach so it's possible for this value to change from `true` to `false` when we encounter a browser error.

@@ -265,3 +268,3 @@ In the case user interaction is required, LiveKit provides `Room.startAudio` to start audio playback. This function must be triggered in an onclick or ontap event handler. In the same session, once audio playback is successful, additional audio tracks can be played without further user interactions.

room.on(RoomEvent.AudioPlaybackStatusChanged, () => {
if (!room.canPlayAudio) {
if (!room.canPlaybackAudio) {
// UI is necessary.

@@ -321,3 +324,5 @@ ...

<!--BEGIN_REPO_NAV-->
<br/><table>
<thead><tr><th colspan="2">LiveKit Ecosystem</th></tr></thead>

@@ -324,0 +329,0 @@ <tbody>

@@ -244,3 +244,3 @@ /**

* audio elements. However, if that fails, we'll notify you via AudioPlaybackStatusChanged.
* `Room.canPlayAudio` will indicate if audio playback is permitted.
* `Room.canPlaybackAudio` will indicate if audio playback is permitted.
*/

@@ -247,0 +247,0 @@ AudioPlaybackStatusChanged = 'audioPlaybackChanged',

@@ -36,3 +36,3 @@ import log from '../../logger';

} from '../track/options';
import { ScreenSharePresets, VideoPresets, isBackupCodec, isCodecEqual } from '../track/options';
import { VideoPresets, isBackupCodec, isCodecEqual } from '../track/options';
import {

@@ -448,5 +448,2 @@ constraintsForOptions,

}
if (options.resolution === undefined) {
options.resolution = ScreenSharePresets.h1080fps15.resolution;
}

@@ -687,2 +684,6 @@ if (navigator.mediaDevices.getDisplayMedia === undefined) {

if (isSVCCodec(opts.videoCodec)) {
// vp9 svc with screenshare has problem to encode, always use L1T3 here
if (track.source === Track.Source.ScreenShare && opts.videoCodec === 'vp9') {
opts.scalabilityMode = 'L1T3';
}
// set scalabilityMode to 'L3T3_KEY' by default

@@ -689,0 +690,0 @@ opts.scalabilityMode = opts.scalabilityMode ?? 'L3T3_KEY';

@@ -156,3 +156,7 @@ import type { Track } from './Track';

/** capture resolution, defaults to full HD */
/**
* capture resolution, defaults to screen resolution
* NOTE: In Safari 17, specifying any resolution at all would lead to a low-resolution
* capture. https://bugs.webkit.org/show_bug.cgi?id=263015
*/
resolution?: VideoResolution;

@@ -302,5 +306,5 @@

/**
* scalability modes for svc, only supprot l3t3 now.
* scalability modes for svc.
*/
export type ScalabilityMode = 'L3T3' | 'L3T3_KEY';
export type ScalabilityMode = 'L1T3' | 'L2T3' | 'L2T3_KEY' | 'L3T3' | 'L3T3_KEY';

@@ -307,0 +311,0 @@ export namespace AudioPresets {

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc