@instructure/media-capture

11.0.0 • Public • Published

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
      }
    )
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @instructure/media-capture

Weekly Downloads

2,881

Version

11.0.0

License

MIT

Unpacked Size

1 MB

Total Files

283

Last publish

Collaborators

  • jakeoeding
  • instuici
  • eschiebel
  • maths22
  • jcrystal
  • itadmins
  • quizzesuici
  • instructure-toolsmiths-service-user
  • aogata-inst
  • instout
  • kyler-instructure
  • ericsaupe
  • xcudder
  • jdewar
  • jguardadom
  • jcflow
  • jozsefg-instructure
  • jacksonhowe
  • sarahgerard
  • ajmal-esa
  • robinkuss64
  • zsotllengyelinst
  • david.wenzlick.inst
  • razorsh4rk
  • ardena
  • bpjatacsuk
  • angela.gomba
  • joyenjoyer
  • omarpr
  • cguanzon-inst
  • herrtopi
  • matyas.szabo
  • cjs118
  • camray
  • aaronshaf
  • dmz985