1.0.0 • Published 2 years ago

webrtc-vue-app v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

webrtcrecorder

Project setup

npm install

Methods

namedescription
startStreamingstart video streaming
stopStreamingstop video Streaming
startRecordingstart recording the video stream
stopRecordingstop recording the video stream
screenShottake a screenshot of the video stream
ShareScreenstart sharing the content of the screen
doMuteto mute the voice
unMuteto unmute the voice
showCamto show the camera
hideCamto hide the camera

usage of methods

after importing the component and including it inside your code as the following template

<webrtcrecorder ref="webrtcVideo">
</webrtcrecorder>

you can create a button tag in your html code and bind its click event with a method you are suppose to create. then inside this method your are going to call one of the methods of the webrtcrecorder which are listed above in a table as the following example: 

<button @click="doRecording">Recording</button>
<button @click="doScreenShot">screenshot</button>

now let us suppose that you have created this mehtod: 
function doRecording(){
    this.$refs.webrtcVideo.startRecording()
}
function doScreenShot(){
    this.$refs.webrtcVideo.screenShot()
}

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Customize configuration

See Configuration Reference.

License

MIT