Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@livekit/components-react

Package Overview
Dependencies
Maintainers
20
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livekit/components-react - npm Package Compare versions

Comparing version 2.0.4 to 3.0.0

6

dist/hooks/index.js

@@ -788,3 +788,3 @@ "use strict";

}) {
const roomContext = useEnsureRoom(room);
const roomContext = useMaybeRoomContext();
const deviceObserver = React20.useMemo(

@@ -797,4 +797,4 @@ () => (0, import_components_core15.createMediaDeviceObserver)(kind, onError, requestPermissions),

const { className, activeDeviceObservable, setActiveMediaDevice } = React20.useMemo(
() => (0, import_components_core15.setupDeviceSelector)(kind, roomContext, track),
[kind, roomContext, track]
() => (0, import_components_core15.setupDeviceSelector)(kind, room != null ? room : roomContext, track),
[kind, room, roomContext, track]
);

@@ -801,0 +801,0 @@ React20.useEffect(() => {

import * as React from 'react';
import { type LocalAudioTrack, type LocalVideoTrack } from 'livekit-client';
import type { LocalAudioTrack, LocalVideoTrack } from 'livekit-client';
/** @public */

@@ -4,0 +4,0 @@ export interface MediaDeviceMenuProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {

{
"name": "@livekit/components-react",
"version": "2.0.4",
"version": "3.0.0",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "author": "LiveKit",

import { createMediaDeviceObserver, setupDeviceSelector, log } from '@livekit/components-core';
import type { LocalAudioTrack, LocalVideoTrack, Room } from 'livekit-client';
import * as React from 'react';
import { useEnsureRoom } from '../context';
import { useMaybeRoomContext } from '../context';
import { useObservableState } from './internal';

@@ -48,3 +48,3 @@

}: UseMediaDeviceSelectProps) {
const roomContext = useEnsureRoom(room);
const roomContext = useMaybeRoomContext();
// List of all devices.

@@ -59,4 +59,4 @@ const deviceObserver = React.useMemo(

const { className, activeDeviceObservable, setActiveMediaDevice } = React.useMemo(
() => setupDeviceSelector(kind, roomContext, track),
[kind, roomContext, track],
() => setupDeviceSelector(kind, room ?? roomContext, track),
[kind, room, roomContext, track],
);

@@ -63,0 +63,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 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 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

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