Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Export types (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-stasiak authored Jan 12, 2024
1 parent c1042cd commit 1851d63
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 47 deletions.
6 changes: 3 additions & 3 deletions examples/use-camera-and-microphone-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 50 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jellyfish-dev/react-client-sdk",
"version": "0.1.6",
"version": "0.1.7",
"description": "React client library for Jellyfish.",
"license": "Apache-2.0",
"author": "Membrane Team",
Expand Down Expand Up @@ -68,7 +68,7 @@
"typescript": "5.2.2"
},
"dependencies": {
"@jellyfish-dev/ts-client-sdk": "^0.2.2",
"@jellyfish-dev/ts-client-sdk": "^0.2.3",
"events": "3.3.0",
"lodash.isequal": "4.5.0"
},
Expand Down
8 changes: 7 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ export default defineConfig({
name: "chromium",
use: {
...devices["Desktop Chrome"],
launchOptions: { args: ["--use-fake-ui-for-media-stream", "--use-fake-device-for-media-stream"] },

launchOptions: {
// devtools: true,
// headless: false,
// executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
args: ["--use-fake-ui-for-media-stream", "--use-fake-device-for-media-stream"],
},
},
},

Expand Down
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ export type {
SignalingUrl,
Config,
JellyfishClient,
TrackBandwidthLimit,
SimulcastBandwidthLimit,
BandwidthLimit,
WebRTCEndpointEvents,
TrackContextEvents,
Endpoint,
SimulcastConfig,
TrackContext,
TrackEncoding,
VadStatus,
EncodingReason,
} from "@jellyfish-dev/ts-client-sdk";
7 changes: 1 addition & 6 deletions src/state.types.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import type { TrackEncoding, VadStatus } from "@jellyfish-dev/ts-client-sdk";
import type { Api } from "./api";
import { JellyfishClient } from "@jellyfish-dev/ts-client-sdk";
import { JellyfishClient, SimulcastConfig } from "@jellyfish-dev/ts-client-sdk";
import { UseUserMediaState } from "./useUserMedia/types";
import { UseCameraAndMicrophoneResult } from "./useMedia/types";
import { UseScreenshareState } from "./useMedia/screenshare";

export type TrackId = string;
export type PeerId = string;

export type SimulcastConfig = {
enabled: boolean | null;
activeEncodings: TrackEncoding[];
};

export type Track<TrackMetadata> = {
stream: MediaStream | null;
encoding: TrackEncoding | null;
Expand Down
38 changes: 19 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@
resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz"
integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==

"@jellyfish-dev/membrane-webrtc-js@^0.5.3":
version "0.5.3"
resolved "https://registry.npmjs.org/@jellyfish-dev/membrane-webrtc-js/-/membrane-webrtc-js-0.5.3.tgz"
integrity sha512-XUmSBToRCfxz5qQDNj3Ql7ZLNuTRJ6LyGZOt7pCL6dlXwrghsRH45KuoibPl28QmcVSEU18jyGeuoKP2XGju3Q==
"@jellyfish-dev/membrane-webrtc-js@^0.6.1":
version "0.6.1"
resolved "https://registry.npmjs.org/@jellyfish-dev/membrane-webrtc-js/-/membrane-webrtc-js-0.6.1.tgz"
integrity sha512-nwJG/1EShrde2yP9Z52N13XiUhCn2Jk6tmO7yvjKLaI8PWsAxQIl5JYyavd06Wx5e2NSv0owDyYgruIJDzDRag==
dependencies:
events "^3.3.0"
typed-emitter "^2.1.0"
uuid "^8.3.2"
uuid "^9.0.1"

"@jellyfish-dev/ts-client-sdk@^0.2.2":
version "0.2.2"
resolved "https://registry.npmjs.org/@jellyfish-dev/ts-client-sdk/-/ts-client-sdk-0.2.2.tgz"
integrity sha512-zP/9ahyqM8JdwK3+gMKUAkvCNctdq73e3Qj6RF4Q++qPOJY+mJa3p02mJfu/mO3EF3H6HcL+d17gBnQ9MRLE8g==
"@jellyfish-dev/ts-client-sdk@^0.2.3":
version "0.2.3"
resolved "https://registry.npmjs.org/@jellyfish-dev/ts-client-sdk/-/ts-client-sdk-0.2.3.tgz"
integrity sha512-MM2KiWW1z3asmAak/1OWK/5r1UQ2gnAE8eyl3K2k7nnwo9HiBuyRfCZhcpLVT5dYUfgPNcoPw3o4iRjgoRHY0w==
dependencies:
"@jellyfish-dev/membrane-webrtc-js" "^0.5.3"
"@jellyfish-dev/membrane-webrtc-js" "^0.6.1"
events "^3.3.0"
ts-proto "^1.147.2"
ts-proto "^1.165.0"
typed-emitter "^2.1.0"

"@nodelib/[email protected]":
Expand Down Expand Up @@ -1701,10 +1701,10 @@ [email protected]:
long "^5.2.3"
protobufjs "^7.2.4"

ts-proto@^1.147.2:
version "1.164.0"
resolved "https://registry.npmjs.org/ts-proto/-/ts-proto-1.164.0.tgz"
integrity sha512-yIyMucjcozS7Vxtyy5mH6C8ltbY4gEBVNW4ymZ0kWiKlyMxsvhyUZ63CbxcF7dCKQVjHR+fLJ3SiorfgyhQ+AQ==
ts-proto@^1.165.0:
version "1.166.2"
resolved "https://registry.npmjs.org/ts-proto/-/ts-proto-1.166.2.tgz"
integrity sha512-ygzeKHZLPbschsqFKmEY1XIJTIIs3k35n3/ZUkz0nF/a/C6x7onITlU7GQBqXmiVPiAvzbT5n/JElrGBVVmvxQ==
dependencies:
case-anything "^2.1.13"
protobufjs "^7.2.4"
Expand Down Expand Up @@ -1777,10 +1777,10 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1:
resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==

uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
uuid@^9.0.1:
version "9.0.1"
resolved "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz"
integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==

vscode-oniguruma@^1.7.0:
version "1.7.0"
Expand Down

0 comments on commit 1851d63

Please sign in to comment.