Vue Composition API for easily recording screen using MediaStream APIs.
npm install use-screen-recorder-composition
npm install @vue/composition-api use-screen-recorder-composition
<script setup lang="ts">
import useScreenRecorder from "use-screen-recorder-composition";
const screenRecorder = useScreenRecorder();
</script>
<script lang="ts">
import { defineComponent } from '@vue/composition-api'
import useScreenRecorder from 'use-screen-recorder-composition'
export default defineComponent({
setup() {
return {
screenRecorder: useScreenRecorder()
}
}
})
</script>
This project is heavily inspired by use-screen-recorder
MIT License © 2022-PRESENT PengshaYing