Skip to content

yingpengsha/use-screen-recorder-composition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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