@vmosedge/web-sdk 1.0.3 → 1.0.5
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/dist/index.cjs.js +2 -2
- package/dist/index.es.js +2 -2
- package/dist/index.global.js +2 -2
- package/dist/types/index.d.ts +7 -7
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -294,7 +294,8 @@ interface VmosEdgeClientOptions {
|
|
|
294
294
|
retryInterval?: number;
|
|
295
295
|
videoCodecPreference?: "no-preference" | "prefer-hardware" | "prefer-software";
|
|
296
296
|
renderPreference?: "default" | "high-performance" | "low-power";
|
|
297
|
-
|
|
297
|
+
hoverMoveKeep?: boolean;
|
|
298
|
+
scrollSpeedRatio?: number;
|
|
298
299
|
}
|
|
299
300
|
|
|
300
301
|
declare class VmosEdgeClient extends EventEmitter {
|
|
@@ -308,6 +309,8 @@ declare class VmosEdgeClient extends EventEmitter {
|
|
|
308
309
|
private renderer;
|
|
309
310
|
private videoCodecPreference;
|
|
310
311
|
private renderPreference;
|
|
312
|
+
private scrollSpeedRatio;
|
|
313
|
+
private hoverMoveKeep;
|
|
311
314
|
private decoder;
|
|
312
315
|
private textareaManager;
|
|
313
316
|
private videoWidth;
|
|
@@ -317,21 +320,16 @@ declare class VmosEdgeClient extends EventEmitter {
|
|
|
317
320
|
private manualRotation;
|
|
318
321
|
private currentRotationAngle;
|
|
319
322
|
private resizeObserver;
|
|
320
|
-
private pointerMoveThrottleMap;
|
|
321
|
-
private touchMoveInterval;
|
|
322
323
|
private retryCount;
|
|
323
324
|
private maxRetries;
|
|
324
325
|
private retryInterval;
|
|
325
326
|
private stopVideoSubscription;
|
|
326
327
|
private static PointerEventButtonToAndroidButton;
|
|
328
|
+
static isWebCodecsSupported(): boolean;
|
|
327
329
|
constructor(options: VmosEdgeClientOptions);
|
|
328
330
|
private setupChannelStatusListener;
|
|
329
|
-
private extractErrorMessage;
|
|
330
|
-
private channelToErrorType;
|
|
331
|
-
private getErrorCodeForChannel;
|
|
332
331
|
private initCanvas;
|
|
333
332
|
private replaceCanvas;
|
|
334
|
-
private applyCanvasStyle;
|
|
335
333
|
private initTextareaManager;
|
|
336
334
|
private observeContainerResize;
|
|
337
335
|
on<T extends VmosEdgeClientEventName>(event: T, listener: VmosEdgeClientEventListener<T>): this;
|
|
@@ -358,6 +356,8 @@ declare class VmosEdgeClient extends EventEmitter {
|
|
|
358
356
|
private handlePointerEvent;
|
|
359
357
|
private sendTouch;
|
|
360
358
|
private handleWheelEvent;
|
|
359
|
+
updateScrollSensitivity(speedRatio: number): void;
|
|
360
|
+
setHoverMoveKeep(enabled: boolean): void;
|
|
361
361
|
sendText(text: string): void;
|
|
362
362
|
sendKeyCode(keyCode: AndroidKeyCode, action: AndroidKeyEventAction, metaState?: number): void;
|
|
363
363
|
clickKey(keyCode: AndroidKeyCode, metaState?: AndroidMetaState): void;
|