{"_id":"@antistud/capacitor-video-recorder","_rev":"2-799a12862f2003ed5a0a343979d400a3","name":"@antistud/capacitor-video-recorder","dist-tags":{"latest":"5.0.2"},"versions":{"5.0.0":{"name":"@antistud/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/TeamHive/capacitor-video-recorder.git"},"bugs":{"url":"https://github.com/TeamHive/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":"^3.2.2","@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":"^3.2.0"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"homepage":"https://github.com/TeamHive/capacitor-video-recorder#readme","gitHead":"677018417df7793869fffe3a2165f72e85a444f8","_id":"@antistud/capacitor-video-recorder@5.0.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-j7QtrdRiXZ15XDIrmSWti3kH7ZW+jiqcZmKstgw2jbPfkF1dF172z4xBnhlc2vSMbM6a68qF48yfClzNxrwb6w==","shasum":"611c8d4a712bfbe53a19cc4e4c02f58c364ada88","tarball":"https://registry.npmjs.org/@antistud/capacitor-video-recorder/-/capacitor-video-recorder-5.0.0.tgz","fileCount":54,"unpackedSize":276235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7KdTempwdo03PeZN7UmiYrfZUmnvsLDhgT/Yik0zNSwIgEXNt7nzTVV72Cq4y9wD4D9g1gD6VOy/JJnprcBMAQN8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihRSkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcxQ//do8HtXXv4Q0dl68T73ICZD9XdOqL18pi+hhk7lOxVP8IZaGa\r\n+uZOqDhskgy0FQbETvdoMH/6ZR8VF5OuQw+wzU8D0ljawNT6myNToJZ8BD+h\r\nAVjU95NRPqa0ten6OnCyibGwJdRqVtfeE2e3J8XZKOoCyLDIKapo/JVzRM/7\r\nw3adO+mi5uwZxEkvB95pY9IiXffWm+127jRp8YiNLrSv0YTfWUsGHkFOSrXs\r\nhCgka5EXD0++7/Z2rOcRo9VkDAdXyuVUWG1fybjR8+H2Ebz4/U0k7JCpC9/j\r\nBj6izQ9Frbrfra6V7QU7yU4zKy9J9iH9Z2qmUcq4JIYhEWAaAwxhdQ09zCir\r\nF+uSN5rZ4/DGxCh3S7B7MQ8rq95tIYtt1wBQ5aBIDopfhigw2FqRnq5RZJdU\r\nVD4Zi3MagY5+6+FzrGDwhI5M6S45YRKgXszluwrkKzjBrbtGRfgGs4TGHonS\r\nxkkq862hgsvafZJiuKdpUrszCP6mUtNo1RJig5Xr4wY6VIvz+lfJiiUCZuXq\r\nwEya4i+tSLunOW82876wnJ+M3//RZe777UIt64uHAiN170KJu+VJc9uqH9Ph\r\n86XF9+jM9vQNm4uOPbv34V97PyUFzRaNHOMudH7SYoa2y4F4YsrbmABssCme\r\ne0Mcl+1KU3UOzOL+fiqX/NoFO+lWCA6d7Fo=\r\n=tUnt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antistud","email":"jon@t3ch.net"},"directories":{},"maintainers":[{"name":"antistud","email":"jon@t3ch.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-video-recorder_5.0.0_1652888740718_0.6730713193725226"},"_hasShrinkwrap":false},"5.0.1":{"name":"@antistud/capacitor-video-recorder","version":"5.0.1","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/TeamHive/capacitor-video-recorder.git"},"bugs":{"url":"https://github.com/TeamHive/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":"^3.2.2","@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":"^3.2.0"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"homepage":"https://github.com/TeamHive/capacitor-video-recorder#readme","gitHead":"6e1e7db8234fbcc97cb2c40882866f7d3df5f008","_id":"@antistud/capacitor-video-recorder@5.0.1","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Yy8DMAB6TLB9I95NzyCdXCyXnNrV4iq9EGw5gP1UWaj9oIa/eQBBdaaqKokT67TBNcv58G12AF37MNVr+TMa/A==","shasum":"50619fc6551a80c47c058fb82bb4b55aa0e97e4d","tarball":"https://registry.npmjs.org/@antistud/capacitor-video-recorder/-/capacitor-video-recorder-5.0.1.tgz","fileCount":54,"unpackedSize":276235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBdBIZgVuwYwd3a/VmX95nXkNx7Vo2yUs129phWJRBtAiARpddj/r0haQ5h/QXIrU3jkbf98o/hn+P/b/3m7tcMMw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihRhKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrqzg//XilwXa1ndu8X9Wgw8w8/mqdXZbUjgp+wo7LI2CzQ7YFGkgVa\r\nIIkQVRGrCDbfOpOcZWfBs3X4ZjoOFE/7l5DL2OTuaSb3V1cS8i7PeVKw+y65\r\nBuy2CC+Ky8RmK9lAx9sgZI1+S1LhXtrPQay3W/D200BcFx2pAWdpwzmBudI1\r\nZiiL1wr3/3TClJLzwCHJmuonCY5Ut7R4pEgzoZaiUA07EvBKyJzBeudeBkLp\r\nVn/WOKu99gJXQW8mKvxhZ5PHjmpsVV3xyp7ib6PZEV0/B4+8jZA0VWA3IrhP\r\nSjW2Z8hktMoNpt6lbp1lVqwWKM74bE4r/+M4QWvo+OFS8rU5VexXkKP++ZK5\r\nBNjP+wH7ZfMynufckDEWLAqSo7MQew/b9KoU7oLeQPne6BhD0fDgxnyZX2d1\r\n+dYIfvSejuRoGEjrYbFBxD6v8c3TON/vAA632/6j8sP858Rh6BL8lskkHZ2a\r\nEScwIGtyg9dU+T3bkbDrd0asLrDUWPNBZNqyTELy4MC2ZCDc5E4lhfvJLE0f\r\nboEru+veCGzZwih8t3fJEPYithtNkO6wsJHFlG1UNMgoipQw+Am42fN+RZca\r\nglN8P9PNW1rXmK2U6PPsXIqTifaen02wjeRez/8YPVbljJB2y+1jUA11Ffr3\r\nj+kz3hMh8SkZpI8p78a5HdGaHjytRPjrvOQ=\r\n=09cV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antistud","email":"jon@t3ch.net"},"directories":{},"maintainers":[{"name":"antistud","email":"jon@t3ch.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-video-recorder_5.0.1_1652889674806_0.8743569803175013"},"_hasShrinkwrap":false},"5.0.2":{"name":"@antistud/capacitor-video-recorder","version":"5.0.2","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/antistud/capacitor-video-recorder.git"},"bugs":{"url":"https://github.com/antistud/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":"^3.2.2","@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":"^3.2.0"},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"homepage":"https://github.com/antistud/capacitor-video-recorder#readme","gitHead":"6ddac83ee8fe1855281910b616553ccefc441af4","_id":"@antistud/capacitor-video-recorder@5.0.2","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/5405Y75xxg3CLkGF+5mYUaFaSlEdvHlne/2+P3n7ybm6Of6VvRaU4BwU8Ulx29KVtPt1bq5wKoyLEM6U9QV7A==","shasum":"3c342aa89e2142f0371e72e6fd461105fd905e98","tarball":"https://registry.npmjs.org/@antistud/capacitor-video-recorder/-/capacitor-video-recorder-5.0.2.tgz","fileCount":64,"unpackedSize":276358,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFX9AnKHlTY5GH6TJgk5JQKiJX/ELdpK4vqebIh56BfAIhAIIccJfI5AIoFFFwGwT0ZLbP0XiSZGPjD9o0j2J8fBZT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihRpcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqW0Q//X/A6AYaucKGZSHZU9NGg1UbvAN2gIsjy/Z4MJqc6i+t3/yJu\r\nEEthVBrm4ehBcV0Fe6scnkJW01QdjOTFN8IP9ghCd8WJOz9EBqwJW8kHWklG\r\nEu1YAi04nz4r+3EZd9MR7reEE7izpqh8Ci1o03ZWiFzOkU55/sBY91esn7w/\r\nUz/b0YFepxMROYCU+40gUp9oP+ei4QgRrXlxzl5Y39FqrDC7i4vm1rbFpIP8\r\nMryR+yWulMIXxWq3GW0VmwdE6F3GizfdCf4cqwYtLZMl5BxMFhXg4R84tLgd\r\nLBenoUPfFbNrq6BderAu9P245Npv7721ECr4ZzNBr/Th2WK9oG1RyN31fzpI\r\n5/9lydhqBu/K/WmoXMhSZbGnJ5x0j1NV9xmAd8GgGDp8G1pBa6GUMkvBuY0i\r\n2dn9ffzFmTMEXW6SOxY1jTf79bdicScx7hUKmBM0EPCa9ETirQ/pybnxQ6j6\r\nZ2LlLQr4zhEqviQolJI5h5p/Dy17vPhXVLddlTRYYVtnqkzVWdlq0ARoGPLh\r\nM9iiiCvnBOGO2AdALTLNCDWfbGwcoWKpL3uNky7DkyUevlx549agC1UnvWY8\r\nLfRxnGLmv6aNZ5JsUTrtQ7roYlds0u99Ys3wdIb3r5u3bf6J7lFysR8aUMgJ\r\n1ezbHYe4twyzml1LlYRMsHZyVpzOwxozRQw=\r\n=l2fG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antistud","email":"jon@t3ch.net"},"directories":{},"maintainers":[{"name":"antistud","email":"jon@t3ch.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-video-recorder_5.0.2_1652890204617_0.661758468284751"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-18T15:45:40.655Z","5.0.0":"2022-05-18T15:45:40.869Z","modified":"2022-05-18T16:10:04.841Z","5.0.1":"2022-05-18T16:01:14.952Z","5.0.2":"2022-05-18T16:10:04.785Z"},"maintainers":[{"name":"antistud","email":"jon@t3ch.net"}],"description":"Records video","homepage":"https://github.com/antistud/capacitor-video-recorder#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/antistud/capacitor-video-recorder.git"},"bugs":{"url":"https://github.com/antistud/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#### Installation\n`npm install @antistud/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 '@antistud/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 '@antistud/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"}