Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/media-capture

Package Overview
Dependencies
Maintainers
0
Versions
829
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/media-capture

--- category: packages experimental: true ---

  • 11.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1K
decreased by-37.09%
Maintainers
0
Weekly downloads
 
Created
Source

category: packages experimental: true

media-capture

Installation

yarn add @instructure/media-capture

Browser Support

  • Chrome, Firefox

Usage

import React, { Component } from 'react'
import { canUseMediaCapture, CaptureStates }, MediaCapture from '@instructure/media-capture'

export default class Container extends Component {
  saveFile(file) {
    // do something with the file
  },

  mediaCaptureClosed() {
    alert('Recording canceled.')
  },

  render () {
    return (
      { canUseMediaCapture() ?
        <ScreenCapture
          onCompleted={this.saveFile}
          onCancel={this.mediaCaptureClosed}
        /> : null
      }
    )
  }
}

FAQs

Package last updated on 05 Dec 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc