Security News
Supply Chain Attack Detected in @solana/web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@lidio601/vue-record
Advanced tools
custom components for MediaRecorder API
Checkout the demo to see it in action.
Download the project using your favourite package manager:
npm install @codekraft-studio/vue-record
Load it inside your project and use it:
import Vue from 'vue'
import VueRecord from '@codekraft-studio/vue-record'
Vue.use(VueRecord)
Now you have access to the global defined components, here an example:
<VueRecordAudio />
<VueRecordVideo />
Use the components in your template with different modes and properties to customize the behavior and the recording output.
Both of the provided components can be used as the following pseudo code example:
<Component :mode="recMode" @stream="onStream" @result="onResult" />
The are only two usage modes and can be selected with the mode property:
By default it's on hold mode, so the recording start when the button is pressed and stops when the button is released.
But you can change this behaviour using a different mode, the available modes are: hold
and press
.
It's simple as adding the component and listening for the result event:
<vue-record-audio @result="onResult" />
export default {
methods: {
onResult (data) {
console.log('The blob data:', data);
console.log('Downloadable audio', window.URL.createObjectURL(data));
}
}
}
We're using this polyfill for Safari.
It's simple as adding the component and listening for the result event:
<vue-record-video @result="onResult" />
export default {
methods: {
onResult (data) {
console.log('The blob data:', data);
console.log('Downloadable video', window.URL.createObjectURL(data));
}
}
}
It doesn't work on Safari, we should consider this polyfill.
Released with MIT License © codekraft-studio
FAQs
> custom components for MediaRecorder API
The npm package @lidio601/vue-record receives a total of 0 weekly downloads. As such, @lidio601/vue-record popularity was classified as not popular.
We found that @lidio601/vue-record demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.