npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-covideo-embed

v1.0.9

Published

Covideo platform as an embeddable React component.

Downloads

430

Readme

react-covideo-embed

Covideo platform as an embeddable React component.

Installation

npm install react-covideo-embed

PeerDependencies

This package has peer dependencies on react and react-dom version 16. Please ensure that you have these installed in your project.

Usage

Here’s a basic example of how to use react-covideo-embed in a React component:

import React from 'react';
import { CovideoEmbed } from 'react-covideo-embed';
const MyApp = () => {
  return (
    <div>
      <CovideoEmbed />
    </div>
  );
};
export default MyApp;

Demo

Explore the capabilities of react-covideo-embed through our Demo Project. This repository serves as a practical example to understand how different props and configurations can be implemented. To run the demo locally, please follow the instructions available in the project’s README.

Props

apikey

  • Type: string
  • Description: Used for tracking the origin of requests from this npm module.

token (optional)

  • Type: string
  • Description: JWT token from Covideo. If provided, the module's login/logout pages are disabled. Without it, users will need to log in through the module's login page.

env (optional)

  • Type: 'sandbox' | 'production'
  • Description: Determines which Covideo environment to target.
  • Default: 'sandbox'

onVideoInsert (optional)

  • Type: function
  • Description: Callback triggered when a video is inserted.
  • Parameters:
    • shareData: Object containing the URL and HTML of the inserted video.
      • url: string - The URL of the inserted video.
      • thumbnail: string - The URL of the thumbnail of the inserted video.
      • html: string - The HTML representation of the inserted video.
      • token: string - The auth token used to fetch the shareData.

onVideoInsertError (optional)

  • Type: function
  • Description: Callback triggered when there is an error inserting a video.
  • Parameters:
    • error: unknown - The error occurred during video insert.

onRecordButtonClick (optional)

  • Type: function
  • Description: Callback triggered when the record button is clicked.
  • Parameters:
    • data: Object containing the data for recording a video.
      • token: string - The auth token.

onUploadButtonClick (optional)

  • Type: function
  • Description: Callback triggered when the upload button is clicked.
  • Parameters:
    • data: Object containing the data for uploading a video.
      • token: string - The auth token.

hideFeatures (optional)

  • Type: Array<Feature>

  • Description: Determines which Covideo features to hide. Acceptable values are as follows:

    • insert
    • recordScreen
    • recordBoth
    • recordCam
    • upload
    • trim
    • merge
    • wheelsTV
    • voiceover
    • quickshare
    • folder
    • landingPage
    • CTA
    • reactions
    • aiAssist
    • lesa
    • multiLocation

APIs/Functions

logoutCovideo()

  • Type: function
  • Description: Log out from Covideo and clear local storage entries associated with Covideo. To reflect the logout status, the CovideoEmbed component should be re-rendered after this function is called.

Author

This package is maintained by Covideo.