TeamMaestro / capacitor-video-recorder

Video recorder plugin for Capacitor
59 stars 31 forks source link

VideoRecorder plugin is not implemented on android #52

Open Michel-HaiRUn opened 1 year ago

Michel-HaiRUn commented 1 year ago

node version: v14.21.1 plugin version: ^5.0.0

i used it on vue project with capacitor

in main.js i imported as

import '@teamhive/capacitor-video-recorder';

(tried it to in my component that use the plugin but the same issue occur)

so i in my component

import { VideoRecorderCamera } from '@teamhive/capacitor-video-recorder';

const { VideoRecorder } = Plugins;

const config = {
    id: 'video-record',
    stackPosition: 'front', // 'front' overlays your app', 'back' places behind your app.
    width: 'fill',
    height: 'fill',
    x: 0,
    y: 0,
    borderRadius: 0
};
await VideoRecorder.initialize({
    camera: VideoRecorderCamera.FRONT, // Can use BACK
    previewFrames: [config]
});

and in my alert error i got Error: "VideoRecorder" plugin is not implemented on android

opunbuds commented 1 year ago

+1

bazuka5801 commented 1 year ago

+1

bazuka5801 commented 1 year ago

@Michel-HaiRUn @opunbuds I published this repo as npm package with Android support!!! 💯 You can use it in package.json I think this repo is a fork, it is 100% compatible and I don't have any differences.

{
    "@teamhive/capacitor-video-recorder": "npm:@bazuka5801/capacitor-video-recorder@5.0.0",
}
mfon-ukobo commented 8 months ago

+1