Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webrtc-streaming-core

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtc-streaming-core - npm Package Compare versions

Comparing version 1.1.17 to 1.1.18

1

dist/app.d.ts

@@ -23,3 +23,2 @@ import { DataChannel } from "./datachannel/datachannel";

private handleIncomingPacket;
VideoPointerLock(): void;
Notifier(notifier: (message: string) => (void)): WebRTCClient;

@@ -26,0 +25,0 @@ Alert(notifier: (message: string) => (void)): WebRTCClient;

@@ -157,6 +157,2 @@ "use strict";

}
VideoPointerLock() {
var _a;
(_a = this.hid) === null || _a === void 0 ? void 0 : _a.lockPointer();
}
Notifier(notifier) {

@@ -163,0 +159,0 @@ (0, log_1.AddNotifier)(notifier);

@@ -14,3 +14,2 @@ export declare class HID {

private isFullscreen;
lockPointer(): void;
connectGamepad(event: GamepadEvent): void;

@@ -17,0 +16,0 @@ disconnectGamepad(event: GamepadEvent): void;

25

dist/gui/hid.js

@@ -122,3 +122,2 @@ "use strict";

this.shortcuts.push(new keys_model_2.Shortcut(keys_model_2.ShortcutCode.Fullscreen, [keys_model_2.KeyCode.Ctrl, keys_model_2.KeyCode.Shift, keys_model_2.KeyCode.F], (() => { this.video.parentElement.requestFullscreen(); })));
this.shortcuts.push(new keys_model_2.Shortcut(keys_model_2.ShortcutCode.PointerLock, [keys_model_2.KeyCode.Ctrl, keys_model_2.KeyCode.Shift, keys_model_2.KeyCode.P], this.lockPointer.bind(this)));
setInterval(() => this.runButton(), 1);

@@ -128,10 +127,10 @@ setInterval(() => this.runAxis(), 1);

setInterval(() => {
this.relativeMouse = !(document.pointerLockElement == null);
if (this.isFullscreen()) {
this.shortcuts.forEach((element) => {
if (element.code == keys_model_2.ShortcutCode.PointerLock) {
element.ManualTrigger();
}
});
const havingPtrLock = document.pointerLockElement != null;
this.relativeMouse = havingPtrLock;
if (this.isFullscreen() && !havingPtrLock) {
this.video.requestPointerLock();
}
else if (!this.isFullscreen() && havingPtrLock) {
document.exitPointerLock();
}
}, 100);

@@ -143,12 +142,2 @@ }

;
lockPointer() {
if (!document.pointerLockElement) {
this.SendFunc((new keys_model_2.HIDMsg(keys_model_1.EventCode.RelativeMouseOn, {}).ToString()));
this.video.requestPointerLock();
}
else {
this.SendFunc((new keys_model_2.HIDMsg(keys_model_1.EventCode.RelativeMouseOff, {}).ToString()));
document.exitPointerLock();
}
}
connectGamepad(event) {

@@ -155,0 +144,0 @@ if (event.gamepad.mapping === "standard") {

@@ -22,4 +22,3 @@ export declare enum EventCode {

export declare enum ShortcutCode {
Fullscreen = 0,
PointerLock = 1
Fullscreen = 0
}

@@ -26,0 +25,0 @@ export declare enum KeyCode {

@@ -29,3 +29,2 @@ "use strict";

ShortcutCode[ShortcutCode["Fullscreen"] = 0] = "Fullscreen";
ShortcutCode[ShortcutCode["PointerLock"] = 1] = "PointerLock";
})(ShortcutCode = exports.ShortcutCode || (exports.ShortcutCode = {}));

@@ -32,0 +31,0 @@ var KeyCode;

{
"name": "webrtc-streaming-core",
"version": "1.1.17",
"version": "1.1.18",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/app.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc