2.0.0 • Published 2 years ago

webrtc-call v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
videowidthString, Number
videoheightString, 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 .

2.0.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.1.1

2 years ago

0.5.1

2 years ago

0.4.1

2 years ago

0.3.1

2 years ago

0.2.1

2 years ago

0.1.1

2 years ago

0.0.1

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago