2.1.0 • Published 2 years ago

webrtc-roomcall v2.1.0

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

Published on webcomponents.org

webrtc-roomcall

Functional custom element

#Live Example

Description

custom element to make a conference call with the functionality in the section methods. A 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>webrtc-roomcall</title>
    <script type="module" crossorigin src="./dist/assets/index.562563e6.js"></script>
  </head>
  <body>
    <webrtc-roomcall></webrtc-roomcall>
  </body>
</html>

Props

nametype
peerapikeyString
videowidthString, Number
videoheightString, Number
peer_idString
roomnameString
doselfieBoolean

Methods

namedescription
startStreamingstart video streaming
stopStreamingTo stop streaming
joinRoomTo create a conference room
leaveRoomTo leave the conference room
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-roomcall></webrtc-roomcall>
  </template>
</custom-element-demo>
    <webrtc-roomcall></webrtc-roomcall>

Customize configuration

See Configuration Reference.

License

MIT

Credits

Author: @HussienMN on GitHub .

2.1.0

2 years ago

2.0.0

2 years ago

1.3.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.2.1

2 years ago

0.1.1

2 years ago

0.0.1

2 years ago