Socket
Book a DemoInstallSign in
Socket

webrtc-stream-element

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

webrtc-stream-element

[![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
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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
videowidth[String, Number]
videoheight[String, Number]
videobitspersecondString
isstartstreamBoolean
isstoptstreamBoolean
doscreenshotBoolean
dorecordingBoolean
dosharescreenBoolean
audiobitspersecondString
mimetype0[String, 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 .

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.