@livekit/react-native 2.1.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/android/build.gradle +1 -1
- package/android/gradle/wrapper/gradle-wrapper.properties +3 -1
- package/android/gradlew +29 -14
- package/android/gradlew.bat +19 -16
- package/android/src/main/java/com/livekit/reactnative/LiveKitReactNative.kt +14 -1
- package/android/src/main/java/com/livekit/reactnative/LivekitReactNativeModule.kt +10 -0
- package/android/src/main/java/com/livekit/reactnative/video/SimulcastVideoEncoderFactoryWrapper.kt +2 -2
- package/android/src/main/java/org/webrtc/audio/WebRtcAudioTrackHelper.kt +20 -0
- package/lib/commonjs/audio/AudioManager.js +4 -27
- package/lib/commonjs/audio/AudioManager.js.map +1 -1
- package/lib/commonjs/audio/AudioSession.js +55 -23
- package/lib/commonjs/audio/AudioSession.js.map +1 -1
- package/lib/commonjs/components/LiveKitRoom.js +3 -6
- package/lib/commonjs/components/LiveKitRoom.js.map +1 -1
- package/lib/commonjs/components/VideoTrack.js +30 -66
- package/lib/commonjs/components/VideoTrack.js.map +1 -1
- package/lib/commonjs/components/VideoView.js +32 -63
- package/lib/commonjs/components/VideoView.js.map +1 -1
- package/lib/commonjs/components/ViewPortDetector.js +15 -62
- package/lib/commonjs/components/ViewPortDetector.js.map +1 -1
- package/lib/commonjs/hooks.js +6 -63
- package/lib/commonjs/hooks.js.map +1 -1
- package/lib/commonjs/index.js +10 -85
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/logger.js +4 -14
- package/lib/commonjs/logger.js.map +1 -1
- package/lib/commonjs/polyfills/EncoderDecoderTogether.min.js +105 -0
- package/lib/commonjs/polyfills/EncoderDecoderTogether.min.js.map +1 -0
- package/lib/commonjs/useParticipant.js +5 -13
- package/lib/commonjs/useParticipant.js.map +1 -1
- package/lib/commonjs/useRoom.js +17 -33
- package/lib/commonjs/useRoom.js.map +1 -1
- package/lib/module/audio/AudioManager.js +3 -17
- package/lib/module/audio/AudioManager.js.map +1 -1
- package/lib/module/audio/AudioSession.js +54 -16
- package/lib/module/audio/AudioSession.js.map +1 -1
- package/lib/module/components/LiveKitRoom.js +1 -0
- package/lib/module/components/LiveKitRoom.js.map +1 -1
- package/lib/module/components/VideoTrack.js +18 -44
- package/lib/module/components/VideoTrack.js.map +1 -1
- package/lib/module/components/VideoView.js +18 -42
- package/lib/module/components/VideoView.js.map +1 -1
- package/lib/module/components/ViewPortDetector.js +13 -54
- package/lib/module/components/ViewPortDetector.js.map +1 -1
- package/lib/module/hooks.js +1 -2
- package/lib/module/hooks.js.map +1 -1
- package/lib/module/index.js +6 -24
- package/lib/module/index.js.map +1 -1
- package/lib/module/logger.js +2 -6
- package/lib/module/logger.js.map +1 -1
- package/lib/module/polyfills/EncoderDecoderTogether.min.js +105 -0
- package/lib/module/polyfills/EncoderDecoderTogether.min.js.map +1 -0
- package/lib/module/useParticipant.js +5 -11
- package/lib/module/useParticipant.js.map +1 -1
- package/lib/module/useRoom.js +17 -30
- package/lib/module/useRoom.js.map +1 -1
- package/lib/typescript/babel.config.d.ts +1 -0
- package/lib/typescript/docs/assets/icons.d.ts +0 -0
- package/lib/typescript/docs/assets/main.d.ts +0 -0
- package/lib/typescript/docs/assets/navigation.d.ts +0 -0
- package/lib/typescript/docs/assets/search.d.ts +0 -0
- package/lib/typescript/lib/commonjs/audio/AudioManager.d.ts +10 -0
- package/lib/typescript/lib/commonjs/audio/AudioSession.d.ts +33 -0
- package/lib/typescript/lib/commonjs/components/LiveKitRoom.d.ts +20 -0
- package/lib/typescript/lib/commonjs/components/VideoTrack.d.ts +8 -0
- package/lib/typescript/lib/commonjs/components/VideoView.d.ts +14 -0
- package/lib/typescript/lib/commonjs/components/ViewPortDetector.d.ts +30 -0
- package/lib/typescript/lib/commonjs/hooks.d.ts +29 -0
- package/lib/typescript/lib/commonjs/index.d.ts +10 -0
- package/lib/typescript/lib/commonjs/logger.d.ts +8 -0
- package/lib/typescript/lib/commonjs/useParticipant.d.ts +14 -0
- package/lib/typescript/lib/commonjs/useRoom.d.ts +16 -0
- package/lib/typescript/lib/module/audio/AudioManager.d.ts +9 -0
- package/lib/typescript/lib/module/audio/AudioSession.d.ts +31 -0
- package/lib/typescript/lib/module/components/LiveKitRoom.d.ts +22 -0
- package/lib/typescript/lib/module/components/VideoTrack.d.ts +9 -0
- package/lib/typescript/lib/module/components/VideoView.d.ts +9 -0
- package/lib/typescript/lib/module/components/ViewPortDetector.d.ts +29 -0
- package/lib/typescript/lib/module/hooks.d.ts +1 -0
- package/lib/typescript/lib/module/index.d.ts +18 -0
- package/lib/typescript/lib/module/logger.d.ts +8 -0
- package/lib/typescript/lib/module/polyfills/EncoderDecoderTogether.min.d.ts +0 -0
- package/lib/typescript/lib/module/useParticipant.d.ts +13 -0
- package/lib/typescript/lib/module/useRoom.d.ts +15 -0
- package/lib/typescript/scripts/bootstrap.d.ts +1 -0
- package/lib/typescript/{audio → src/audio}/AudioSession.d.ts +7 -9
- package/lib/typescript/{components → src/components}/LiveKitRoom.d.ts +1 -1
- package/lib/typescript/{components → src/components}/VideoTrack.d.ts +2 -2
- package/lib/typescript/{components → src/components}/VideoView.d.ts +3 -3
- package/lib/typescript/{components → src/components}/ViewPortDetector.d.ts +3 -3
- package/lib/typescript/src/hooks.d.ts +3 -0
- package/lib/typescript/src/index.d.ts +20 -0
- package/lib/typescript/{logger.d.ts → src/logger.d.ts} +2 -2
- package/lib/typescript/src/polyfills/EncoderDecoderTogether.min.d.ts +0 -0
- package/lib/typescript/{useRoom.d.ts → src/useRoom.d.ts} +1 -1
- package/package.json +22 -19
- package/src/audio/AudioSession.ts +0 -2
- package/src/components/LiveKitRoom.tsx +1 -1
- package/src/components/VideoTrack.tsx +7 -2
- package/src/components/VideoView.tsx +8 -3
- package/src/components/ViewPortDetector.tsx +4 -4
- package/src/hooks.ts +12 -9
- package/src/index.tsx +11 -9
- package/src/polyfills/EncoderDecoderTogether.min.js +6 -0
- package/src/useRoom.ts +1 -1
- package/lib/typescript/hooks.d.ts +0 -2
- package/lib/typescript/index.d.ts +0 -19
- /package/lib/typescript/{audio → src/audio}/AudioManager.d.ts +0 -0
- /package/lib/typescript/{useParticipant.d.ts → src/useParticipant.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/react-native",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "LiveKit for React Native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@livekit/components-react": "^2.0.6",
|
|
46
46
|
"array.prototype.at": "^1.1.1",
|
|
47
|
-
"fastestsmallesttextencoderdecoder": "^1.0.22",
|
|
48
47
|
"livekit-client": "^2.0.0",
|
|
49
48
|
"loglevel": "^1.8.0",
|
|
50
49
|
"promise.allsettled": "^1.0.5",
|
|
@@ -57,45 +56,49 @@
|
|
|
57
56
|
"@babel/runtime": "^7.20.0",
|
|
58
57
|
"@commitlint/config-conventional": "^16.2.1",
|
|
59
58
|
"@livekit/react-native-webrtc": "^114.0.0",
|
|
60
|
-
"@react-native
|
|
59
|
+
"@react-native/babel-preset": "0.74.84",
|
|
60
|
+
"@react-native/eslint-config": "0.74.84",
|
|
61
|
+
"@react-native/metro-config": "0.74.84",
|
|
62
|
+
"@react-native/typescript-config": "0.74.84",
|
|
61
63
|
"@release-it/conventional-changelog": "^4.2.0",
|
|
62
|
-
"@tsconfig/react-native": "^2.0.2",
|
|
63
64
|
"@types/fastestsmallesttextencoderdecoder": "^1.0.0",
|
|
64
|
-
"@types/
|
|
65
|
-
"
|
|
66
|
-
"@types/react-native": "^0.71.3",
|
|
65
|
+
"@types/react": "^18.2.6",
|
|
66
|
+
"babel-jest": "^29.6.3",
|
|
67
67
|
"commitlint": "^16.2.1",
|
|
68
68
|
"eslint": "^8.23.0",
|
|
69
69
|
"eslint-config-prettier": "^8.5.0",
|
|
70
70
|
"eslint-plugin-ft-flow": "^2.0.3",
|
|
71
71
|
"eslint-plugin-prettier": "^4.2.1",
|
|
72
72
|
"husky": "^7.0.4",
|
|
73
|
-
"jest": "^29.
|
|
74
|
-
"pod-install": "^0.
|
|
75
|
-
"prettier": "
|
|
76
|
-
"react": "18.
|
|
77
|
-
"react-native": "0.
|
|
73
|
+
"jest": "^29.6.3",
|
|
74
|
+
"pod-install": "^0.2.2",
|
|
75
|
+
"prettier": "2.8.8",
|
|
76
|
+
"react": "18.2.0",
|
|
77
|
+
"react-native": "0.74.2",
|
|
78
78
|
"react-native-builder-bob": "^0.18.2",
|
|
79
79
|
"release-it": "^14.2.2",
|
|
80
|
-
"typedoc": "^0.
|
|
81
|
-
"typescript": "
|
|
80
|
+
"typedoc": "^0.25.13",
|
|
81
|
+
"typescript": "5.0.4"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@livekit/react-native-webrtc": "^
|
|
84
|
+
"@livekit/react-native-webrtc": "^125.0.0",
|
|
85
85
|
"react": "*",
|
|
86
86
|
"react-native": "*"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"test": "jest",
|
|
90
90
|
"build-docs": "typedoc --tsconfig tsconfig.build.json",
|
|
91
|
-
"typescript": "tsc --
|
|
91
|
+
"typescript": "tsc --noemit -p tsconfig.build.json",
|
|
92
92
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
93
93
|
"prepare": "bob build",
|
|
94
94
|
"release": "release-it",
|
|
95
95
|
"example": "yarn --cwd example",
|
|
96
|
-
"pods": "cd example && pod-install --
|
|
96
|
+
"pods": "cd example && pod-install --verbose",
|
|
97
97
|
"bootstrap": "yarn example && yarn && yarn pods"
|
|
98
98
|
},
|
|
99
|
+
"engines": {
|
|
100
|
+
"node": ">=18"
|
|
101
|
+
},
|
|
99
102
|
"jest": {
|
|
100
103
|
"preset": "react-native",
|
|
101
104
|
"modulePathIgnorePatterns": [
|
|
@@ -133,7 +136,7 @@
|
|
|
133
136
|
"hooks": {
|
|
134
137
|
"before:init": [
|
|
135
138
|
"yarn lint",
|
|
136
|
-
"yarn test",
|
|
139
|
+
"yarn test --passWithNoTests",
|
|
137
140
|
"yarn typescript"
|
|
138
141
|
],
|
|
139
142
|
"after:bump": [
|
|
@@ -162,7 +165,7 @@
|
|
|
162
165
|
"eslintConfig": {
|
|
163
166
|
"root": true,
|
|
164
167
|
"extends": [
|
|
165
|
-
"@react-native
|
|
168
|
+
"@react-native",
|
|
166
169
|
"prettier"
|
|
167
170
|
],
|
|
168
171
|
"rules": {
|
|
@@ -36,8 +36,6 @@ const LivekitReactNative = NativeModules.LivekitReactNative
|
|
|
36
36
|
*
|
|
37
37
|
* See {@link AndroidAudioTypePresets} for pre-configured values.
|
|
38
38
|
*
|
|
39
|
-
* NOTE: If `audioTypeOptions` is set, this must also be reflected in your android MainApplication setup.
|
|
40
|
-
*
|
|
41
39
|
* ----
|
|
42
40
|
* iOS
|
|
43
41
|
*
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
import { LayoutChangeEvent, StyleSheet, View, ViewStyle } from 'react-native';
|
|
4
3
|
import {
|
|
5
|
-
|
|
4
|
+
type LayoutChangeEvent,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
View,
|
|
7
|
+
type ViewStyle,
|
|
8
|
+
} from 'react-native';
|
|
9
|
+
import {
|
|
10
|
+
type ElementInfo,
|
|
6
11
|
LocalVideoTrack,
|
|
7
12
|
Track,
|
|
8
13
|
TrackEvent,
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
import { LayoutChangeEvent, StyleSheet, View, ViewStyle } from 'react-native';
|
|
4
3
|
import {
|
|
5
|
-
|
|
4
|
+
type LayoutChangeEvent,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
View,
|
|
7
|
+
type ViewStyle,
|
|
8
|
+
} from 'react-native';
|
|
9
|
+
import {
|
|
10
|
+
type ElementInfo,
|
|
6
11
|
LocalVideoTrack,
|
|
7
12
|
Track,
|
|
8
13
|
TrackEvent,
|
|
9
|
-
VideoTrack,
|
|
14
|
+
type VideoTrack,
|
|
10
15
|
} from 'livekit-client';
|
|
11
16
|
import { RTCView } from '@livekit/react-native-webrtc';
|
|
12
17
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
import React, { Component, PropsWithChildren } from 'react';
|
|
3
|
+
import React, { Component, type PropsWithChildren } from 'react';
|
|
4
4
|
import {
|
|
5
5
|
AppState,
|
|
6
|
-
AppStateStatus,
|
|
7
|
-
NativeEventSubscription,
|
|
6
|
+
type AppStateStatus,
|
|
7
|
+
type NativeEventSubscription,
|
|
8
8
|
View,
|
|
9
|
-
ViewStyle,
|
|
9
|
+
type ViewStyle,
|
|
10
10
|
} from 'react-native';
|
|
11
11
|
|
|
12
12
|
const DEFAULT_DELAY = 1000;
|
package/src/hooks.ts
CHANGED
|
@@ -3,20 +3,16 @@ export {
|
|
|
3
3
|
useDataChannel,
|
|
4
4
|
useIsSpeaking,
|
|
5
5
|
useLocalParticipant,
|
|
6
|
-
UseLocalParticipantOptions,
|
|
7
6
|
useLocalParticipantPermissions,
|
|
8
7
|
useParticipantInfo,
|
|
9
|
-
UseParticipantInfoOptions,
|
|
10
8
|
useParticipants,
|
|
11
|
-
UseParticipantsOptions,
|
|
12
9
|
useRemoteParticipants,
|
|
13
|
-
UseRemoteParticipantOptions,
|
|
14
10
|
useRemoteParticipant,
|
|
15
|
-
UseRemoteParticipantsOptions,
|
|
16
11
|
useSpeakingParticipants,
|
|
17
12
|
useSortedParticipants,
|
|
18
13
|
useChat,
|
|
19
14
|
useIsEncrypted,
|
|
15
|
+
useRoomInfo,
|
|
20
16
|
useIsMuted,
|
|
21
17
|
useParticipantTracks,
|
|
22
18
|
useLiveKitRoom,
|
|
@@ -27,14 +23,21 @@ export {
|
|
|
27
23
|
TrackRefContext,
|
|
28
24
|
useTrackRefContext,
|
|
29
25
|
useTracks,
|
|
30
|
-
UseTracksOptions,
|
|
31
|
-
TrackReference,
|
|
32
|
-
TrackReferenceOrPlaceholder,
|
|
33
26
|
isTrackReference,
|
|
34
27
|
useEnsureTrackRef,
|
|
35
28
|
useTrackMutedIndicator,
|
|
36
29
|
useVisualStableUpdate,
|
|
30
|
+
} from '@livekit/components-react';
|
|
31
|
+
export type {
|
|
32
|
+
UseLocalParticipantOptions,
|
|
33
|
+
UseParticipantInfoOptions,
|
|
34
|
+
UseParticipantsOptions,
|
|
35
|
+
UseRemoteParticipantOptions,
|
|
36
|
+
UseRemoteParticipantsOptions,
|
|
37
|
+
UseTracksOptions,
|
|
38
|
+
TrackReference,
|
|
39
|
+
TrackReferenceOrPlaceholder,
|
|
37
40
|
UseVisualStableUpdateOptions,
|
|
38
41
|
} from '@livekit/components-react';
|
|
39
42
|
|
|
40
|
-
export { ReceivedDataMessage } from '@livekit/components-core';
|
|
43
|
+
export type { ReceivedDataMessage } from '@livekit/components-core';
|
package/src/index.tsx
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { registerGlobals as webrtcRegisterGlobals } from '@livekit/react-native-webrtc';
|
|
2
2
|
import { setupURLPolyfill } from 'react-native-url-polyfill';
|
|
3
|
-
import '
|
|
3
|
+
import './polyfills/EncoderDecoderTogether.min.js';
|
|
4
4
|
import AudioSession, {
|
|
5
5
|
AndroidAudioTypePresets,
|
|
6
|
-
AndroidAudioTypeOptions,
|
|
7
|
-
AppleAudioCategory,
|
|
8
|
-
AppleAudioCategoryOption,
|
|
9
|
-
AppleAudioConfiguration,
|
|
10
|
-
AppleAudioMode,
|
|
11
|
-
AudioTrackState,
|
|
6
|
+
type AndroidAudioTypeOptions,
|
|
7
|
+
type AppleAudioCategory,
|
|
8
|
+
type AppleAudioCategoryOption,
|
|
9
|
+
type AppleAudioConfiguration,
|
|
10
|
+
type AppleAudioMode,
|
|
11
|
+
type AudioTrackState,
|
|
12
12
|
getDefaultAppleAudioConfigurationForMode,
|
|
13
13
|
} from './audio/AudioSession';
|
|
14
14
|
import type { AudioConfiguration } from './audio/AudioSession';
|
|
@@ -85,15 +85,17 @@ export * from './audio/AudioManager';
|
|
|
85
85
|
|
|
86
86
|
export {
|
|
87
87
|
AudioSession,
|
|
88
|
+
AndroidAudioTypePresets,
|
|
89
|
+
getDefaultAppleAudioConfigurationForMode,
|
|
90
|
+
};
|
|
91
|
+
export type {
|
|
88
92
|
AudioConfiguration,
|
|
89
93
|
AndroidAudioTypeOptions,
|
|
90
|
-
AndroidAudioTypePresets,
|
|
91
94
|
AppleAudioCategory,
|
|
92
95
|
AppleAudioCategoryOption,
|
|
93
96
|
AppleAudioConfiguration,
|
|
94
97
|
AppleAudioMode,
|
|
95
98
|
AudioTrackState,
|
|
96
|
-
getDefaultAppleAudioConfigurationForMode,
|
|
97
99
|
LogLevel,
|
|
98
100
|
SetLogLevelOptions,
|
|
99
101
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';(function(q){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(q.SharedArrayBuffer),B=v(),r=q.Uint8Array,t=r||Array,w=r?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=q.TextEncoder,F=q.TextDecoder,a=new (r?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");
|
|
2
|
+
g=r?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1):
|
|
3
|
+
(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length|
|
|
4
|
+
0,f=new t((l<<1)+8|0),b,c=0,u=!r;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return r?
|
|
5
|
+
f.subarray(0,c):f.slice(0,c)};E||(q.TextEncoder=y);F||(q.TextDecoder=x)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo
|
|
6
|
+
//# sourceMappingURL=https://cdn.jsdelivr.net/gh/davidliu/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map
|
package/src/useRoom.ts
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { useConnectionState, useDataChannel, useIsSpeaking, useLocalParticipant, UseLocalParticipantOptions, useLocalParticipantPermissions, useParticipantInfo, UseParticipantInfoOptions, useParticipants, UseParticipantsOptions, useRemoteParticipants, UseRemoteParticipantOptions, useRemoteParticipant, UseRemoteParticipantsOptions, useSpeakingParticipants, useSortedParticipants, useChat, useIsEncrypted, useIsMuted, useParticipantTracks, useLiveKitRoom, RoomContext, useRoomContext, ParticipantContext, useParticipantContext, TrackRefContext, useTrackRefContext, useTracks, UseTracksOptions, TrackReference, TrackReferenceOrPlaceholder, isTrackReference, useEnsureTrackRef, useTrackMutedIndicator, useVisualStableUpdate, UseVisualStableUpdateOptions, } from '@livekit/components-react';
|
|
2
|
-
export { ReceivedDataMessage } from '@livekit/components-core';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import 'fastestsmallesttextencoderdecoder';
|
|
2
|
-
import AudioSession, { AndroidAudioTypePresets, AndroidAudioTypeOptions, AppleAudioCategory, AppleAudioCategoryOption, AppleAudioConfiguration, AppleAudioMode, AudioTrackState, getDefaultAppleAudioConfigurationForMode } from './audio/AudioSession';
|
|
3
|
-
import type { AudioConfiguration } from './audio/AudioSession';
|
|
4
|
-
import type { LogLevel, SetLogLevelOptions } from './logger';
|
|
5
|
-
/**
|
|
6
|
-
* Registers the required globals needed for LiveKit to work.
|
|
7
|
-
*
|
|
8
|
-
* Must be called before using LiveKit.
|
|
9
|
-
*/
|
|
10
|
-
export declare function registerGlobals(): void;
|
|
11
|
-
export * from './hooks';
|
|
12
|
-
export * from './components/LiveKitRoom';
|
|
13
|
-
export * from './components/VideoTrack';
|
|
14
|
-
export * from './components/VideoView';
|
|
15
|
-
export * from './useParticipant';
|
|
16
|
-
export * from './useRoom';
|
|
17
|
-
export * from './logger';
|
|
18
|
-
export * from './audio/AudioManager';
|
|
19
|
-
export { AudioSession, AudioConfiguration, AndroidAudioTypeOptions, AndroidAudioTypePresets, AppleAudioCategory, AppleAudioCategoryOption, AppleAudioConfiguration, AppleAudioMode, AudioTrackState, getDefaultAppleAudioConfigurationForMode, LogLevel, SetLogLevelOptions, };
|
|
File without changes
|
|
File without changes
|