{"_id":"@bazuka5801/capacitor-video-recorder","name":"@bazuka5801/capacitor-video-recorder","dist-tags":{"latest":"5.0.0"},"versions":{"5.0.0":{"name":"@bazuka5801/capacitor-video-recorder","version":"5.0.0","description":"Records video","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/SIXMON/capacitor-video-recorder.git"},"bugs":{"url":"https://github.com/SIXMON/capacitor-video-recorder/issues"},"keywords":["capacitor","plugin","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios/Plugin && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..","verify:android":"cd android && ./gradlew clean build && cd ..","verify:web":"npm run build","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- autocorrect --format","eslint":"eslint . --ext ts","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","build":"npm run clean && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"devDependencies":{"@capacitor/android":"^3.2.2","@capacitor/core":"^4.6.1","@capacitor/ios":"^3.2.2","@ionic/eslint-config":"^0.3.0","@ionic/prettier-config":"^1.0.1","@ionic/swiftlint-config":"^1.1.2","eslint":"^7.11.0","jetifier":"^2.0.0","prettier":"~2.2.0","prettier-plugin-java":"~1.0.0","rimraf":"^3.0.2","rollup":"^2.32.0","swiftlint":"^1.0.1","typescript":"~4.0.3"},"peerDependencies":{"@capacitor/core":"^4.6.1"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"gitHead":"6a5d57afeb081e78b625064f67f978825ee0e822","homepage":"https://github.com/SIXMON/capacitor-video-recorder#readme","_id":"@bazuka5801/capacitor-video-recorder@5.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-bVMX6UW8TH/DE2bdfZfzn76sFr0kb3buq/uy2glwG+LeOhnmDlsK1BkyN7Ho+toqKu6ZG3vfKuuxjf0IGbammg==","shasum":"0a84c40b088dd6c20bb384114ead53bbbb10dfa6","tarball":"https://registry.npmjs.org/@bazuka5801/capacitor-video-recorder/-/capacitor-video-recorder-5.0.0.tgz","fileCount":71,"unpackedSize":4258129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9Kc1AVxt1jtaiA874xiUi/pxD5ZIqYJoDjPNVmGNnKAIhAKX8TTfokI5yJIiEf8nPa7kZNFh3HobrN9i+kFNtbQEl"}]},"_npmUser":{"name":"bazuka5801","email":"bazuka5801@mail.ru"},"directories":{},"maintainers":[{"name":"bazuka5801","email":"bazuka5801@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-video-recorder_5.0.0_1693232806786_0.839313228654659"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-28T14:26:46.691Z","5.0.0":"2023-08-28T14:26:46.997Z","modified":"2023-08-28T14:26:47.274Z"},"maintainers":[{"name":"bazuka5801","email":"bazuka5801@mail.ru"}],"description":"Records video","homepage":"https://github.com/SIXMON/capacitor-video-recorder#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/SIXMON/capacitor-video-recorder.git"},"bugs":{"url":"https://github.com/SIXMON/capacitor-video-recorder/issues"},"license":"MIT","readme":"# Capacitor Video Recorder\n\nA video recording plugin for Capacitor that allows applications to use the native camera and microphone and display the recording interface either below or above their application.\n\n#### Infos\nCe plugin est repris d'un fork https://github.com/Xevlabs/capacitor-video-recorder\nLe plugin de base ne fonctionne pas à partir de capacitor v3\n\n#### Installation\n`npm install @teamhive/capacitor-video-recorder`\n\n#### Platform Support\n- iOS\n- Android\n\n> On a web browser, we will fake the behavior to allow for easier development.\n\n## Example Usage\n\nfeature.module.ts\n> Import the plugin as defined below to allow the plugin to register correctly to the feature module.\n```typescript\nimport '@teamhive/capacitor-video-recorder';\n```\n\n### Initializing Camera\n\nIn order to initialize the camera feed (**note**: you are not recording at this point), you must first specify a config to the video recorder.\n\n> Note: To overlay your web UI on-top of the camera output, you must use stackPosition: back and make all layers of your app transparent so that the camera can be seen under the webview.\n\n```typescript\nimport { VideoRecorderCamera, VideoRecorderPreviewFrame } from '@teamhive/capacitor-video-recorder';\n\nconst { VideoRecorder } = Plugins;\n\nconst config: VideoRecorderPreviewFrame = {\n    id: 'video-record',\n    stackPosition: 'front', // 'front' overlays your app', 'back' places behind your app.\n    width: 'fill',\n    height: 'fill',\n    x: 0,\n    y: 0,\n    borderRadius: 0\n};\nawait VideoRecorder.initialize({\n    camera: VideoRecorderCamera.FRONT, // Can use BACK\n    previewFrames: [config]\n});\n```\n\n### Recording\n\nStarts recording against the capture device.\n\n```typescript\nVideoRecorder.startRecording();\n```\n\n### Stop Recording / Getting Result\n\nStops the capture device and returns the path of the local video file.\n\n``` typescript\nconst res = await VideoRecorder.stopRecording();\n// The video url is the local file path location of the video output.\nreturn res.videoUrl;\n```\n\n### Destroying Camera\n\nUsed to disconnect from the capture device and remove any native UI layers that exist.\n\n```typescript\nVideoRecorder.destroy();\n```\n\n### Example Implementations\n\n|iOS|Android|\n|---|---|\n|<img src=\"https://user-images.githubusercontent.com/13732623/70366156-52e83500-1863-11ea-96f0-c53bdd12ebea.gif\" />|<img src=\"https://user-images.githubusercontent.com/13732623/70366162-61365100-1863-11ea-8376-fe76cf147a73.gif\" />|\n","readmeFilename":"README.md"}