@webex/web-media-effects
Advanced tools
Comparing version
@@ -11,3 +11,3 @@ import TypedEmitter from 'typed-emitter'; | ||
type MediaStreamOrTrack = MediaStream | MediaStreamTrack; | ||
declare type MediaStreamOrTrack = MediaStream | MediaStreamTrack; | ||
interface TrackEffect { | ||
@@ -240,8 +240,8 @@ getUnderlyingStream(): MediaStream | undefined; | ||
} | ||
type BeforeInferenceResult = { | ||
declare type BeforeInferenceResult = { | ||
shouldInfer: boolean; | ||
modifiedCanvas?: HTMLCanvasElement; | ||
}; | ||
type BeforeInferenceCallback = (timestamp: number, lastResult: IFrameInferenceResult, inputCanvas?: HTMLCanvasElement) => Promise<BeforeInferenceResult>; | ||
type AfterInferenceCallback = (timestamp: number, result?: IFrameInferenceResult) => Promise<void>; | ||
declare type BeforeInferenceCallback = (timestamp: number, lastResult: IFrameInferenceResult, inputCanvas?: HTMLCanvasElement) => Promise<BeforeInferenceResult>; | ||
declare type AfterInferenceCallback = (timestamp: number, result?: IFrameInferenceResult) => Promise<void>; | ||
interface BeforeInferencePlugin extends Plugin { | ||
@@ -253,3 +253,3 @@ onBeforeInference: BeforeInferenceCallback; | ||
} | ||
type PluginType = BeforeInferencePlugin | AfterInferencePlugin; | ||
declare type PluginType = BeforeInferencePlugin | AfterInferencePlugin; | ||
declare class PluginManager { | ||
@@ -273,3 +273,3 @@ private plugins; | ||
} | ||
type LadonOverrides = { | ||
declare type LadonOverrides = { | ||
modelUri?: string; | ||
@@ -276,0 +276,0 @@ modelRank?: number; |
{ | ||
"name": "@webex/web-media-effects", | ||
"version": "2.23.0", | ||
"version": "2.23.1", | ||
"description": "Media effects for JS SDKs", | ||
@@ -35,3 +35,3 @@ "source": "src/index.ts", | ||
"type": "git", | ||
"url": "https://github.com/webex/web-media-effects" | ||
"url": "https://github.com/beyonddunbar/web-media-effects" | ||
}, | ||
@@ -65,3 +65,4 @@ "publishConfig": { | ||
"uuid": "^9.0.1", | ||
"worker-timers": "^8.0.2" | ||
"worker-timers": "^8.0.2", | ||
"yarn": "^1.22.22" | ||
}, | ||
@@ -68,0 +69,0 @@ "devDependencies": { |
@@ -18,3 +18,3 @@ | ||
The effects plugins have four primary methods to control the plugin: | ||
Each effect has four primary methods to control the plugin: | ||
@@ -51,3 +51,3 @@ - `load(input)` accepts a track or stream and returns a new track or stream with the effect applied | ||
const noiseReductionEffect = await createNoiseReductionEffect({ | ||
authToken: 'YOUR_AUTH_TOKEN', | ||
authToken: 'your-auth-token', | ||
// ...other options | ||
@@ -59,3 +59,3 @@ }, | ||
const virtualBackgroundEffect = await createVirtualBackgroundEffect({ | ||
authToken: 'YOUR_AUTH_TOKEN', | ||
authToken: 'your-auth-token', | ||
mode: 'BLUR', | ||
@@ -62,0 +62,0 @@ // ...other options |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1647859
0.03%14313
0.06%7
16.67%+ Added
+ Added