ray-streaming
Advanced tools
Comparing version 2.18.1 to 2.18.2
{ | ||
"name": "ray-streaming", | ||
"license": "MIT", | ||
"version": "2.18.1", | ||
"version": "2.18.2", | ||
"author": "Kitsch <xc648593557@gmail.com>", | ||
@@ -6,0 +6,0 @@ "description": "RayStreaming WebRTC implement", |
@@ -1,2 +0,2 @@ | ||
export declare type KeyboardValue = 'Escape' | 'F1' | 'F2' | 'F3' | 'F4' | 'F5' | 'F6' | 'F7' | 'F8' | 'F9' | 'F10' | 'F11' | 'F12' | 'Backquote' | 'Digit1' | 'Digit2' | 'Digit3' | 'Digit4' | 'Digit5' | 'Digit6' | 'Digit7' | 'Digit8' | 'Digit9' | 'Digit0' | 'Minus' | 'Equal' | 'Backspace' | 'Tab' | 'KeyQ' | 'KeyW' | 'KeyE' | 'KeyR' | 'KeyT' | 'KeyY' | 'KeyU' | 'KeyI' | 'KeyO' | 'KeyP' | 'BracketLeft' | 'BracketRight' | 'Backslash' | 'CapsLock' | 'KeyA' | 'KeyS' | 'KeyD' | 'KeyF' | 'KeyG' | 'KeyH' | 'KeyJ' | 'KeyK' | 'KeyL' | 'Semicolon' | 'Quote' | 'Enter' | 'ShiftLeft' | 'KeyZ' | 'KeyX' | 'KeyC' | 'KeyV' | 'KeyB' | 'KeyN' | 'KeyM' | 'Comma' | 'Period' | 'Slash' | 'ShiftRight' | 'ControlLeft' | 'OSLeft' | 'MetaLeft' | 'AltLeft' | 'Space' | 'AltRight' | 'OSRight' | 'MetaRight' | 'ContextMenu' | 'ControlRight' | 'Insert' | 'Home' | 'PageUp' | 'Delete' | 'End' | 'PageDown' | 'ArrowUp' | 'ArrowLeft' | 'ArrowRight' | 'ArrowDown' | 'PrintScreen' | 'ScrollLock' | 'Pause' | 'NumLock' | 'NumpadDivide' | 'NumpadMultiply' | 'NumpadSubtract' | 'Numpad0' | 'Numpad1' | 'Numpad2' | 'Numpad3' | 'Numpad4' | 'Numpad5' | 'Numpad6' | 'Numpad7' | 'Numpad8' | 'Numpad9' | 'NumpadAdd' | 'NumpadEnter' | 'NumpadDecimal'; | ||
export type KeyboardValue = 'Escape' | 'F1' | 'F2' | 'F3' | 'F4' | 'F5' | 'F6' | 'F7' | 'F8' | 'F9' | 'F10' | 'F11' | 'F12' | 'Backquote' | 'Digit1' | 'Digit2' | 'Digit3' | 'Digit4' | 'Digit5' | 'Digit6' | 'Digit7' | 'Digit8' | 'Digit9' | 'Digit0' | 'Minus' | 'Equal' | 'Backspace' | 'Tab' | 'KeyQ' | 'KeyW' | 'KeyE' | 'KeyR' | 'KeyT' | 'KeyY' | 'KeyU' | 'KeyI' | 'KeyO' | 'KeyP' | 'BracketLeft' | 'BracketRight' | 'Backslash' | 'CapsLock' | 'KeyA' | 'KeyS' | 'KeyD' | 'KeyF' | 'KeyG' | 'KeyH' | 'KeyJ' | 'KeyK' | 'KeyL' | 'Semicolon' | 'Quote' | 'Enter' | 'ShiftLeft' | 'KeyZ' | 'KeyX' | 'KeyC' | 'KeyV' | 'KeyB' | 'KeyN' | 'KeyM' | 'Comma' | 'Period' | 'Slash' | 'ShiftRight' | 'ControlLeft' | 'OSLeft' | 'MetaLeft' | 'AltLeft' | 'Space' | 'AltRight' | 'OSRight' | 'MetaRight' | 'ContextMenu' | 'ControlRight' | 'Insert' | 'Home' | 'PageUp' | 'Delete' | 'End' | 'PageDown' | 'ArrowUp' | 'ArrowLeft' | 'ArrowRight' | 'ArrowDown' | 'PrintScreen' | 'ScrollLock' | 'Pause' | 'NumLock' | 'NumpadDivide' | 'NumpadMultiply' | 'NumpadSubtract' | 'Numpad0' | 'Numpad1' | 'Numpad2' | 'Numpad3' | 'Numpad4' | 'Numpad5' | 'Numpad6' | 'Numpad7' | 'Numpad8' | 'Numpad9' | 'NumpadAdd' | 'NumpadEnter' | 'NumpadDecimal'; | ||
export declare const KeyCodeMap: Map<KeyboardValue, number>; |
import 'webrtc-adapter'; | ||
import { AFK, TypedEvent, Cursor } from '../utils'; | ||
declare type ConnectMSG = { | ||
type ConnectMSG = { | ||
action: 'connect'; | ||
@@ -8,3 +8,3 @@ code: number; | ||
}; | ||
declare type ReadyMSG = { | ||
type ReadyMSG = { | ||
action: 'ready'; | ||
@@ -42,6 +42,6 @@ data: { | ||
/** | ||
* @deprecated use `receivedTrack` instead | ||
* @deprecated: use `receivedStream` instead | ||
*/ | ||
receivedVideo: TypedEvent<MediaStream>; | ||
receivedTrack: TypedEvent<MediaStreamTrack>; | ||
receivedStream: TypedEvent<MediaStream>; | ||
dataChannelConnected: TypedEvent<Event>; | ||
@@ -83,2 +83,3 @@ interaction: TypedEvent<string | ArrayBuffer>; | ||
private answerDelayTimer; | ||
private mediaStream; | ||
constructor(url: string, iceServers: RTCIceServer[], iceTransportPolicy?: RTCIceTransportPolicy, minBitrate?: number, maxBitrate?: number, startBitrate?: number, enableAFK?: boolean, isMobile?: boolean, answerDelayHint?: number); | ||
@@ -85,0 +86,0 @@ /** |
@@ -106,3 +106,3 @@ /// <reference types="dom-webcodecs" /> | ||
} | ||
export declare type MouseMoveEventType = EventType.MouseMoveNormalization | EventType.MouseMoveStandardization; | ||
export type MouseMoveEventType = EventType.MouseMoveNormalization | EventType.MouseMoveStandardization; | ||
export declare class MouseMove { | ||
@@ -109,0 +109,0 @@ private x; |
import type { RunningState } from './running-state'; | ||
import type { Cursor } from '../utils'; | ||
import { MouseMove, MouseButton } from './event-adapter'; | ||
declare type Mode = 'touch' | 'trackpad'; | ||
type Mode = 'touch' | 'trackpad'; | ||
export declare class Magnifier { | ||
@@ -6,0 +6,0 @@ private hostElement; |
export interface InteractHandler { | ||
(payload: string | ArrayBuffer): void; | ||
} | ||
export declare type InteractPayload = Parameters<InteractHandler>[number]; | ||
export declare type Position = [number, number]; | ||
export declare type Dimension = [number, number]; | ||
export type InteractPayload = Parameters<InteractHandler>[number]; | ||
export type Position = [number, number]; | ||
export type Dimension = [number, number]; | ||
export declare abstract class BasicControl { | ||
@@ -8,0 +8,0 @@ protected position: Position; |
import type { KeyboardValue } from '../android/keycode-map'; | ||
export type { KeyboardValue }; | ||
export declare type SpecialKeys = 'Switch' | 'abc'; | ||
export declare type CombineShfitKey = '(' | ')' | '+' | '!' | '@' | '#' | '$' | '%' | '^' | '&' | '*'; | ||
export declare type KeyType = KeyboardValue | SpecialKeys | CombineShfitKey; | ||
export type SpecialKeys = 'Switch' | 'abc'; | ||
export type CombineShfitKey = '(' | ')' | '+' | '!' | '@' | '#' | '$' | '%' | '^' | '&' | '*'; | ||
export type KeyType = KeyboardValue | SpecialKeys | CombineShfitKey; | ||
export declare const specialKeysArr: SpecialKeys[]; | ||
@@ -7,0 +7,0 @@ export declare const combineShiftKeysArr: CombineShfitKey[]; |
@@ -5,3 +5,3 @@ import type { Player } from './player'; | ||
import { MouseButton, MouseMove } from './event-adapter'; | ||
declare type Mode = 'direct' | 'relative'; | ||
type Mode = 'direct' | 'relative'; | ||
/** | ||
@@ -8,0 +8,0 @@ * emulate below behavior for touch device |
import { MobileTouchActionType } from '../core/event-adapter'; | ||
import type { NormalizeIdentifier } from './normalize-identifier'; | ||
export declare type MouseEventLike = { | ||
export type MouseEventLike = { | ||
target: Event['target']; | ||
@@ -10,3 +10,3 @@ clientX: number; | ||
}; | ||
declare type UeMultiTouch = { | ||
type UeMultiTouch = { | ||
isAction: MobileTouchActionType; | ||
@@ -13,0 +13,0 @@ id: number; |
export declare enum LogLevel { | ||
log = 1, | ||
log = 0, | ||
info = 1, | ||
@@ -4,0 +4,0 @@ warn = 2, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
715260
4729