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

@arcware/webrtc-plugin

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcware/webrtc-plugin

Javascript/Typescript module to connect any frontend to Unreal Engine 4 app with pixel streaming enabled through signalling WS.

  • 0.0.28
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Arcware WebRTC Plugin

Javascript/Typescript module to connect any frontend to Unreal Engine 4 app with pixel streaming enabled through signalling WS.

Getting started

import { WebRTCClient } from "@arcware-cloud/webrtc-plugin";

const webrtc_client = new WebRTCClient(args);

// Vue template
<div ref="sizeContainer">
  <div ref="videoContainer">
    <video ref="videoRef" />
  </div>
</div>;

// React template
const sizeContainerRef = React.useRef();
const containerRef = React.useRef();
const videoRef = React.useRef();

<div ref={sizeContainerRef}>
  <div ref={containerRef}>
    <video ref={videoElRef} />
  </div>
</div>;

// Initialize WebRTC

const args = {
  address: "Signalling WS URL",
  packageName: "Name of the package (if there are multiple applications)",
  settings: {},
  // --- Containers Options ---
  // Vue
  sizeContainer: this.$refs.sizeContainer,
  container: this.$refs.videoContainer,
  videoRef: this.$refs.videoRef,
  // React
  sizeContainer: this.sizeContainerRef.current,
  container: this.containerRef.current,
  videoRef: this.videoRef.current,
  // ---  ---
  playOverlay: true, // Set default overlay with play button. Make it false and use loader
  loader: (val) => {}, // Callback for loading screen, etc. Once stream is ready, the function will be triggered with false value.
};

const webrtc = new WebRTCClient(args);
const emitUIInteraction = this.webrtc.emitUIInteraction;

Types and Props

Please follow to WebRTCClientProps interface exported from module to check properties types

SizeContainer, container and videoRef

FAQs

Package last updated on 05 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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