Socket
Book a DemoInstallSign in
Socket

webrtc-call

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtc-call

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/owner/my-element)

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Published on webcomponents.org

webrtcStream

Functional custom element

Example

Live Example.

Description

custom element to make a call with another peer using peer ID with the functionality in the section methods The Peer ID is generated through the Skyway SDK by using Skyway signaling server See Deatils.

It's important to have peerAPIkey from Skyway to get the functionality of the signaling server To get the peerAPIkey from Skyway see deatils here (https://webrtc.ecl.ntt.com/en/skyway/function.html) After that you can pass the peerAPIkey to the element as a property Note !! you have to set up the domain of your website by creating peerAPIkey

Project setup

npm install

Usage

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + Vue</title>
    <script type="module" crossorigin src="./assets/index.562563e6.js"></script>
  </head>
  <body>
    <webrtc-peercall></webrtc-peercall>
  </body>
</html>

Props

nametype
peerapikeyString
videowidth[String, Number]
videoheight[String, Number]
peer_idString
remote_idString

Methods

namedescription
startStreamingstart video streaming
joinCallTo make a video call with your call partner
leaveCallTo End the call
screenShotTo take a selfie
screenShotDeleteto delete the selfie
doMuteA toggel button to mute the sound
unMuteA toggel button to mute the sound
hideCamA toggel button to hide the video cam
showCamA toggel button to show the video cam

inline Demo

<custom-element-demo>
  <template>
    <script type="module" crossorigin src="./dist/assets/index.562563e6.js"></script>
    <link rel="import" href="./index.html">
    <webrtc-peercall></webrtc-peercall>
  </template>
</custom-element-demo>
    <webrtc-peercall></webrtc-peercall>

Customize configuration

See Configuration Reference.

License

MIT

Credits

Author: @HussienMN on GitHub .

FAQs

Package last updated on 08 Oct 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.