1.4.0 • Published 2 years ago

webrtc-stream-element v1.4.0

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

Published on webcomponents.org

webrtcStream

<webrtc-stream></webrtc-stream>

Example

Live Example

Description

custom element to make a video streaming using webRTC in the browser with the functionality in the section methods

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" />
    <script type="module" crossorigin src="./dist/assets/index.56a0a266.js"></script>
  </head>
  <body>
    <webrtc-stream></webrtc-stream>
  </body>
</html>

Props

nametype
videowidthString, Number
videoheightString, Number
videobitspersecondString
isstartstreamBoolean
isstoptstreamBoolean
doscreenshotBoolean
dorecordingBoolean
dosharescreenBoolean
audiobitspersecondString
mimetype0String, Number

Methods

namedescription
startStreamingstart video streaming
stopStreamingstop video Streaming
startRecordingstart recording the video stream
stopRecordingstop recording the video stream
screenShottake a screenshot of the video stream
ShareScreenstart sharing the content of the screen

DEMO

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

Customize configuration

See Configuration Reference.

License

MIT

Credits

Author: @HussienMN on GitHub .

1.4.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