Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.19 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.19 KB

use-screen-recorder-composition

npm

Vue Composition API for easily recording screen using MediaStream APIs.

Install

Vue3.0

npm install use-screen-recorder-composition

Vue2.0

npm install @vue/composition-api use-screen-recorder-composition

Usage

Vue3.0

<script setup lang="ts">
import useScreenRecorder from "use-screen-recorder-composition";
const screenRecorder = useScreenRecorder();
</script>

Vue2.0

<script lang="ts">
import { defineComponent } from '@vue/composition-api'
import useScreenRecorder from 'use-screen-recorder-composition'

export default defineComponent({
  setup() {
    return {
      screenRecorder: useScreenRecorder()
    }
  }
})
</script>

Thanks

This project is heavily inspired by use-screen-recorder

License

MIT License © 2022-PRESENT PengshaYing