{"_id":"@brandx/native-audio","_rev":"4-eff0c31ff397382ae1c56559888fc822","name":"@brandx/native-audio","dist-tags":{"latest":"6.1.18"},"versions":{"6.1.14":{"name":"@brandx/native-audio","version":"6.1.14","description":"A native plugin for native audio engine","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","keywords":["capacitor","plugin","audio","media","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..","verify:android":"cd android && ./gradlew clean build test && 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 --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","docgen":"docgen --api NativeAudio --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Martin Donadieu","email":"martindonadieu@gmail.com"},"license":"MIT","devDependencies":{"@capacitor/android":"^5.0.3","@capacitor/cli":"^5.0.3","@capacitor/core":"^5.0.3","@capacitor/docgen":"^0.2.1","@capacitor/ios":"^5.0.3","@ionic/eslint-config":"^0.3.0","@ionic/prettier-config":"^3.0.0","@ionic/swiftlint-config":"^1.1.2","@types/node":"^20.2.3","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","eslint":"^8.41.0","eslint-plugin-import":"^2.27.5","husky":"^8.0.3","prettier":"^2.8.8","prettier-plugin-java":"^2.1.0","rimraf":"^5.0.1","rollup":"^3.23.0","swiftlint":"^1.0.2","typescript":"^5.0.4"},"peerDependencies":{"@capacitor/core":"^5.0.0"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"repository":{"type":"git","url":"git+https://github.com/Cap-go/native-audio.git"},"bugs":{"url":"https://github.com/Cap-go/native-audio/issues"},"publishConfig":{"access":"public"},"_id":"@brandx/native-audio@6.1.14","gitHead":"df7e449b7111ca56ca71de3490d72beabcc09f4c","homepage":"https://github.com/Cap-go/native-audio#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-YmvF/4iJioCUqLMUxG/Vb76+g7zA4KaRA2igXuLVFSnjguDcyv+CP3hbkFBR6MNC9NlxZWRRNmnWRNEl2Q1vLg==","shasum":"2c695ebb303e474cbfe9f09dc929c2b63ab4f6d5","tarball":"https://registry.npmjs.org/@brandx/native-audio/-/native-audio-6.1.14.tgz","fileCount":37,"unpackedSize":115550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzIRrRR1FuIjX3umIJNYTUQZIbULASDa+dokGNgzkooAiAdVuqI5/akmC9Giwtj3DXr6I0DY67778vmgUoyHJ55MQ=="}]},"_npmUser":{"name":"bluntworks","email":"dave@bluntworks.net"},"directories":{},"maintainers":[{"name":"bluntworks","email":"dave@bluntworks.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/native-audio_6.1.14_1700307233269_0.20624024279213837"},"_hasShrinkwrap":false},"6.1.15":{"name":"@brandx/native-audio","version":"6.1.15","description":"A native plugin for native audio engine","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","keywords":["capacitor","plugin","audio","media","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..","verify:android":"cd android && ./gradlew clean build test && 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 --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","docgen":"docgen --api NativeAudio --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Martin Donadieu","email":"martindonadieu@gmail.com"},"license":"MIT","devDependencies":{"@capacitor/android":"^5.0.3","@capacitor/cli":"^5.0.3","@capacitor/core":"^5.0.3","@capacitor/docgen":"^0.2.1","@capacitor/ios":"^5.0.3","@ionic/eslint-config":"^0.3.0","@ionic/prettier-config":"^3.0.0","@ionic/swiftlint-config":"^1.1.2","@types/node":"^20.2.3","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","eslint":"^8.41.0","eslint-plugin-import":"^2.27.5","husky":"^8.0.3","prettier":"^2.8.8","prettier-plugin-java":"^2.1.0","rimraf":"^5.0.1","rollup":"^3.23.0","swiftlint":"^1.0.2","typescript":"^5.0.4"},"peerDependencies":{"@capacitor/core":"^5.0.0"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"repository":{"type":"git","url":"git+https://github.com/Cap-go/native-audio.git"},"bugs":{"url":"https://github.com/Cap-go/native-audio/issues"},"publishConfig":{"access":"public"},"_id":"@brandx/native-audio@6.1.15","gitHead":"df7e449b7111ca56ca71de3490d72beabcc09f4c","homepage":"https://github.com/Cap-go/native-audio#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-l0r4o356+R6SgSMp4XTH1tyxNOifxJ6pzwjikuMMqm/oZ0zWOBRiPEEyjAY5zGNEFAvwALDhDX75QO4lY+jCvw==","shasum":"92352ad8dde233bfd227c6a78c299ed691e368e0","tarball":"https://registry.npmjs.org/@brandx/native-audio/-/native-audio-6.1.15.tgz","fileCount":36,"unpackedSize":115030,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq84cdZLuvqL+SaKnK2tJgkWvQ5viGNfyBttbaxohU2AIgXuxG+LsHC9d/72zZjHZrwghMwNCqfbt9ax28HZc5Ui4="}]},"_npmUser":{"name":"bluntworks","email":"dave@bluntworks.net"},"directories":{},"maintainers":[{"name":"bluntworks","email":"dave@bluntworks.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/native-audio_6.1.15_1700309132621_0.615113598410991"},"_hasShrinkwrap":false},"6.1.16":{"name":"@brandx/native-audio","version":"6.1.16","description":"A native plugin for native audio engine","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","keywords":["capacitor","plugin","audio","media","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..","verify:android":"cd android && ./gradlew clean build test && 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 --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","docgen":"docgen --api NativeAudio --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Martin Donadieu","email":"martindonadieu@gmail.com"},"license":"MIT","devDependencies":{"@capacitor/android":"^5.0.3","@capacitor/cli":"^5.0.3","@capacitor/core":"^5.0.3","@capacitor/docgen":"^0.2.1","@capacitor/ios":"^5.0.3","@ionic/eslint-config":"^0.3.0","@ionic/prettier-config":"^3.0.0","@ionic/swiftlint-config":"^1.1.2","@types/node":"^20.2.3","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","eslint":"^8.41.0","eslint-plugin-import":"^2.27.5","husky":"^8.0.3","prettier":"^2.8.8","prettier-plugin-java":"^2.1.0","rimraf":"^5.0.1","rollup":"^3.23.0","swiftlint":"^1.0.2","typescript":"^5.0.4"},"peerDependencies":{"@capacitor/core":"^5.0.0"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"repository":{"type":"git","url":"git+https://github.com/Cap-go/native-audio.git"},"bugs":{"url":"https://github.com/Cap-go/native-audio/issues"},"publishConfig":{"access":"public"},"_id":"@brandx/native-audio@6.1.16","gitHead":"df7e449b7111ca56ca71de3490d72beabcc09f4c","homepage":"https://github.com/Cap-go/native-audio#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-EFPIFS86944TsBrIjM/1x82hUoDfGJqJcalOd+y3J8WgQ2AvsGI8RhWYR8vrKc1hg+Gd0mYzvsbtUpoFuPGPRg==","shasum":"eab569bed6339060c877aac459ca5db934e2bbfb","tarball":"https://registry.npmjs.org/@brandx/native-audio/-/native-audio-6.1.16.tgz","fileCount":37,"unpackedSize":115551,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC472G/Y2S/0RE3iA2H2KSbF/zRePqrJo2MwES4UGkiCQIhAMohIy2vDfUKvAwlnJakdL3huh4El3csZWmsckVpViZt"}]},"_npmUser":{"name":"bluntworks","email":"dave@bluntworks.net"},"directories":{},"maintainers":[{"name":"bluntworks","email":"dave@bluntworks.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/native-audio_6.1.16_1700309328354_0.07968669831483988"},"_hasShrinkwrap":false},"6.1.17":{"name":"@brandx/native-audio","version":"6.1.17","description":"A native plugin for native audio engine","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","keywords":["capacitor","plugin","audio","media","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..","verify:android":"cd android && ./gradlew clean build test && 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 --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","docgen":"docgen --api NativeAudio --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Martin Donadieu","email":"martindonadieu@gmail.com"},"license":"MIT","devDependencies":{"@capacitor/android":"^5.0.3","@capacitor/cli":"^5.0.3","@capacitor/core":"^5.0.3","@capacitor/docgen":"^0.2.1","@capacitor/ios":"^5.0.3","@ionic/eslint-config":"^0.3.0","@ionic/prettier-config":"^3.0.0","@ionic/swiftlint-config":"^1.1.2","@types/node":"^20.2.3","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","eslint":"^8.41.0","eslint-plugin-import":"^2.27.5","husky":"^8.0.3","prettier":"^2.8.8","prettier-plugin-java":"^2.1.0","rimraf":"^5.0.1","rollup":"^3.23.0","swiftlint":"^1.0.2","typescript":"^5.0.4"},"peerDependencies":{"@capacitor/core":"^5.0.0"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"repository":{"type":"git","url":"git+https://github.com/Cap-go/native-audio.git"},"bugs":{"url":"https://github.com/Cap-go/native-audio/issues"},"publishConfig":{"access":"public"},"_id":"@brandx/native-audio@6.1.17","gitHead":"df7e449b7111ca56ca71de3490d72beabcc09f4c","homepage":"https://github.com/Cap-go/native-audio#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-aASB28iPtLP0oCdt31BPlHLawDujR7aw4RqsIlRmN/1G7T0RoAevW8ZW7pWtiv/3T9PCbEQz06h22N0Lkhyvug==","shasum":"afc2b6acd03f4b186d1b4672d386384122bb29ed","tarball":"https://registry.npmjs.org/@brandx/native-audio/-/native-audio-6.1.17.tgz","fileCount":37,"unpackedSize":115552,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIcihr3UeISlCA6NRSCISUaaleQkSvEZyK5Hya1iXbEgIgElWC+emRA/ke+O925dbhAOCw9O19hOqfTBrCRE02fxY="}]},"_npmUser":{"name":"bluntworks","email":"dave@bluntworks.net"},"directories":{},"maintainers":[{"name":"bluntworks","email":"dave@bluntworks.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/native-audio_6.1.17_1700309458677_0.7782492413226851"},"_hasShrinkwrap":false},"6.1.18":{"name":"@brandx/native-audio","version":"6.1.18","description":"A native plugin for native audio engine","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","keywords":["capacitor","plugin","audio","media","native"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..","verify:android":"cd android && ./gradlew clean build test && 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 --config .prettierrc.js \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","docgen":"docgen --api NativeAudio --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Martin Donadieu","email":"martindonadieu@gmail.com"},"license":"MIT","devDependencies":{"@capacitor/android":"^5.0.3","@capacitor/cli":"^5.0.3","@capacitor/core":"^5.0.3","@capacitor/docgen":"^0.2.1","@capacitor/ios":"^5.0.3","@ionic/eslint-config":"^0.3.0","@ionic/prettier-config":"^3.0.0","@ionic/swiftlint-config":"^1.1.2","@types/node":"^20.2.3","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","eslint":"^8.41.0","eslint-plugin-import":"^2.27.5","husky":"^8.0.3","prettier":"^2.8.8","prettier-plugin-java":"^2.1.0","rimraf":"^5.0.1","rollup":"^3.23.0","swiftlint":"^1.0.2","typescript":"^5.0.4"},"peerDependencies":{"@capacitor/core":"^5.0.0"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"prettier":"@ionic/prettier-config","swiftlint":"@ionic/swiftlint-config","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"repository":{"type":"git","url":"git+https://github.com/Cap-go/native-audio.git"},"bugs":{"url":"https://github.com/Cap-go/native-audio/issues"},"publishConfig":{"access":"public"},"_id":"@brandx/native-audio@6.1.18","gitHead":"df7e449b7111ca56ca71de3490d72beabcc09f4c","homepage":"https://github.com/Cap-go/native-audio#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-6D1t0NK3a0ik+ayHansMJhMIROLAUeOi9oCbZjis/+Ix1EJwTiEYS+TmR4Z4EMofj6jjYIPHvI54syCDlQfksg==","shasum":"9068256812b706572fadb287f952dea7f6c14c47","tarball":"https://registry.npmjs.org/@brandx/native-audio/-/native-audio-6.1.18.tgz","fileCount":37,"unpackedSize":115552,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8gj/Em8mQd5QcONhhlAho6zTrDqrXekfWIrqs4pxdJAiBDN9B4rLltqVDw/8rjO8dTDLzDimR39iFI+ufYP8wDjg=="}]},"_npmUser":{"name":"bluntworks","email":"dave@bluntworks.net"},"directories":{},"maintainers":[{"name":"bluntworks","email":"dave@bluntworks.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/native-audio_6.1.18_1700309844869_0.4841349571547582"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-18T11:33:53.176Z","6.1.14":"2023-11-18T11:33:53.549Z","modified":"2023-11-18T12:17:25.297Z","6.1.15":"2023-11-18T12:05:32.865Z","6.1.16":"2023-11-18T12:08:48.597Z","6.1.17":"2023-11-18T12:10:58.947Z","6.1.18":"2023-11-18T12:17:25.100Z"},"maintainers":[{"name":"bluntworks","email":"dave@bluntworks.net"}],"description":"A native plugin for native audio engine","homepage":"https://github.com/Cap-go/native-audio#readme","keywords":["capacitor","plugin","audio","media","native"],"repository":{"type":"git","url":"git+https://github.com/Cap-go/native-audio.git"},"author":{"name":"Martin Donadieu","email":"martindonadieu@gmail.com"},"bugs":{"url":"https://github.com/Cap-go/native-audio/issues"},"license":"MIT","readme":"<a href=\"https://capgo.app/\">\n  <img\n    src=\"https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png\"\n    alt=\"Capgo - Instant updates for capacitor\"\n  />\n</a>\n\n<div align=\"center\">\n  <h2>\n    <a href=\"https://capgo.app/\">Check out: Capgo — Instant updates for capacitor</a>\n  </h2>\n</div>\n\n<h3 align=\"center\">Native Audio</h3>\n<p align=\"center\">\n  <strong>\n    <code>@capgo/native-audio</code>\n  </strong>\n</p>\n<p align=\"center\">Capacitor plugin for playing sounds.</p>\n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/maintenance/yes/2023?style=flat-square\" />\n  <a href=\"https://github.com/capgo/native-audio/actions?query=workflow%3A%22Test+and+Build+Plugin%22\"><img src=\"https://img.shields.io/github/workflow/status/@capgo/native-audio/Test%20and%20Build%20Plugin?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/capgo/native-audio\"><img src=\"https://img.shields.io/npm/l/@capgo/native-audio?style=flat-square\" /></a>\n<br>\n  <a href=\"https://www.npmjs.com/package/@capgo/native-audio\"><img src=\"https://img.shields.io/npm/dw/@capgo/native-audio?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/@capgo/native-audio\"><img src=\"https://img.shields.io/npm/v/@capgo/native-audio?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all%20contributors-6-orange?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n</p>\n\n# Capacitor Native Audio Plugin\n\nCapacitor plugin for native audio engine.\nCapacitor V5 - ✅ Support!\n\nClick on video to see example 💥\n\n[![YouTube Example](https://img.youtube.com/vi/XpUGlWWtwHs/0.jpg)](https://www.youtube.com/watch?v=XpUGlWWtwHs)\n\n## Maintainers\n\n| Maintainer      | GitHub                              | Social                                  |\n| --------------- | ----------------------------------- | --------------------------------------- |\n| Martin Donadieu | [riderx](https://github.com/riderx) | [Telegram](https://t.me/martindonadieu) |\n\nMainteinance Status: Actively Maintained\n\n## Preparation\n\nAll audio files must be with the rest of your source files.\n\nFirst make your sound file end up in your builded code folder, example in folder `BUILDFOLDER/assets/sounds/FILENAME.mp3`\nThen use it in preload like that `assets/sounds/FILENAME.mp3`\n\n## Installation\n\nTo use npm\n\n```bash\nnpm install @capgo/native-audio\n```\n\nTo use yarn\n\n```bash\nyarn add @capgo/native-audio\n```\n\nSync native files\n\n```bash\nnpx cap sync\n```\n\nOn iOS, Android and Web, no further steps are needed.\n\n## Configuration\n\nNo configuration required for this plugin.\n<docgen-config>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n\n\n</docgen-config>\n\n## Supported methods\n\n| Name           | Android | iOS | Web |\n| :------------- | :------ | :-- | :-- |\n| configure      | ✅      | ✅  | ❌  |\n| preload        | ✅      | ✅  | ✅  |\n| play           | ✅      | ✅  | ✅  |\n| pause          | ✅      | ✅  | ✅  |\n| resume         | ✅      | ✅  | ✅  |\n| loop           | ✅      | ✅  | ✅  |\n| stop           | ✅      | ✅  | ✅  |\n| unload         | ✅      | ✅  | ✅  |\n| setVolume      | ✅      | ✅  | ✅  |\n| getDuration    | ✅      | ✅  | ✅  |\n| getCurrentTime | ✅      | ✅  | ✅  |\n| isPlaying      | ✅      | ✅  | ✅  |\n\n## Usage\n\n[Example repository](https://github.com/bazuka5801/native-audio-example)\n\n```typescript\nimport {NativeAudio} from '@capgo/native-audio'\n\n\n/**\n * This method will load more optimized audio files for background into memory.\n * @param assetPath - relative path of the file or absolute url (file://)\n *        assetId - unique identifier of the file\n *        audioChannelNum - number of audio channels\n *        isUrl - pass true if assetPath is a `file://` url\n * @returns void\n */\nNativeAudio.preload({\n    assetId: \"fire\",\n    assetPath: \"assets/sounds/fire.mp3\",\n    audioChannelNum: 1,\n    isUrl: false\n});\n\n/**\n * This method will play the loaded audio file if present in the memory.\n * @param assetId - identifier of the asset\n * @param time - (optional) play with seek. example: 6.0 - start playing track from 6 sec\n * @returns void\n */\nNativeAudio.play({\n    assetId: 'fire',\n    // time: 6.0 - seek time\n});\n\n/**\n * This method will loop the audio file for playback.\n * @param assetId - identifier of the asset\n * @returns void\n */\nNativeAudio.loop({\n  assetId: 'fire',\n});\n\n\n/**\n * This method will stop the audio file if it's currently playing.\n * @param assetId - identifier of the asset\n * @returns void\n */\nNativeAudio.stop({\n  assetId: 'fire',\n});\n\n/**\n * This method will unload the audio file from the memory.\n * @param assetId - identifier of the asset\n * @returns void\n */\nNativeAudio.unload({\n  assetId: 'fire',\n});\n\n/**\n * This method will set the new volume for a audio file.\n * @param assetId - identifier of the asset\n *        volume - numerical value of the volume between 0.1 - 1.0\n * @returns void\n */\nNativeAudio.setVolume({\n  assetId: 'fire',\n  volume: 0.4,\n});\n\n/**\n * this method will get the duration of an audio file.\n * only works if channels == 1\n */\nNativeAudio.getDuration({\n  assetId: 'fire'\n})\n.then(result => {\n  console.log(result.duration);\n})\n\n/**\n * this method will get the current time of a playing audio file.\n * only works if channels == 1\n */\nNativeAudio.getCurrentTime({\n  assetId: 'fire'\n});\n.then(result => {\n  console.log(result.currentTime);\n})\n\n/**\n * This method will return false if audio is paused or not loaded.\n * @param assetId - identifier of the asset\n * @returns {isPlaying: boolean}\n */\nNativeAudio.isPlaying({\n  assetId: 'fire'\n})\n.then(result => {\n  console.log(result.isPlaying);\n})\n```\n\n## API\n\n<docgen-index>\n\n<docgen-api>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n### configure(...)\n\n```typescript\nconfigure(options: ConfigureOptions) => Promise<void>\n```\n\n| Param         | Type                                                          |\n| ------------- | ------------------------------------------------------------- |\n| **`options`** | <code><a href=\"#configureoptions\">ConfigureOptions</a></code> |\n\n--------------------\n\n\n### preload(...)\n\n```typescript\npreload(options: PreloadOptions) => Promise<void>\n```\n\n| Param         | Type                                                      |\n| ------------- | --------------------------------------------------------- |\n| **`options`** | <code><a href=\"#preloadoptions\">PreloadOptions</a></code> |\n\n--------------------\n\n\n### play(...)\n\n```typescript\nplay(options: { assetId: string; time?: number; delay?: number; }) => Promise<void>\n```\n\n| Param         | Type                                                             |\n| ------------- | ---------------------------------------------------------------- |\n| **`options`** | <code>{ assetId: string; time?: number; delay?: number; }</code> |\n\n--------------------\n\n\n### pause(...)\n\n```typescript\npause(options: { assetId: string; }) => Promise<void>\n```\n\n| Param         | Type                              |\n| ------------- | --------------------------------- |\n| **`options`** | <code>{ assetId: string; }</code> |\n\n--------------------\n\n\n### resume(...)\n\n```typescript\nresume(options: { assetId: string; }) => Promise<void>\n```\n\n| Param         | Type                              |\n| ------------- | --------------------------------- |\n| **`options`** | <code>{ assetId: string; }</code> |\n\n--------------------\n\n\n### loop(...)\n\n```typescript\nloop(options: { assetId: string; }) => Promise<void>\n```\n\n| Param         | Type                              |\n| ------------- | --------------------------------- |\n| **`options`** | <code>{ assetId: string; }</code> |\n\n--------------------\n\n\n### stop(...)\n\n```typescript\nstop(options: { assetId: string; }) => Promise<void>\n```\n\n| Param         | Type                              |\n| ------------- | --------------------------------- |\n| **`options`** | <code>{ assetId: string; }</code> |\n\n--------------------\n\n\n### unload(...)\n\n```typescript\nunload(options: { assetId: string; }) => Promise<void>\n```\n\n| Param         | Type                              |\n| ------------- | --------------------------------- |\n| **`options`** | <code>{ assetId: string; }</code> |\n\n--------------------\n\n\n### setVolume(...)\n\n```typescript\nsetVolume(options: { assetId: string; volume: number; }) => Promise<void>\n```\n\n| Param         | Type                                              |\n| ------------- | ------------------------------------------------- |\n| **`options`** | <code>{ assetId: string; volume: number; }</code> |\n\n--------------------\n\n\n### setRate(...)\n\n```typescript\nsetRate(options: { assetId: string; rate: number; }) => Promise<void>\n```\n\n| Param         | Type                                            |\n| ------------- | ----------------------------------------------- |\n| **`options`** | <code>{ assetId: string; rate: number; }</code> |\n\n--------------------\n\n\n### getCurrentTime(...)\n\n```typescript\ngetCurrentTime(options: { assetId: string; }) => Promise<{ currentTime: number; }>\n```\n\n| Param         | Type                              |\n| ------------- | --------------------------------- |\n| **`options`** | <code>{ assetId: string; }</code> |\n\n**Returns:** <code>Promise&lt;{ currentTime: number; }&gt;</code>\n\n--------------------\n\n\n### getDuration(...)\n\n```typescript\ngetDuration(options: { assetId: string; }) => Promise<{ duration: number; }>\n```\n\n| Param         | Type                              |\n| ------------- | --------------------------------- |\n| **`options`** | <code>{ assetId: string; }</code> |\n\n**Returns:** <code>Promise&lt;{ duration: number; }&gt;</code>\n\n--------------------\n\n\n### isPlaying(...)\n\n```typescript\nisPlaying(options: { assetId: string; }) => Promise<{ isPlaying: boolean; }>\n```\n\n| Param         | Type                              |\n| ------------- | --------------------------------- |\n| **`options`** | <code>{ assetId: string; }</code> |\n\n**Returns:** <code>Promise&lt;{ isPlaying: boolean; }&gt;</code>\n\n--------------------\n\n\n### addListener('complete', ...)\n\n```typescript\naddListener(eventName: \"complete\", listenerFunc: CompletedListener) => Promise<PluginListenerHandle> & PluginListenerHandle\n```\n\nListen for complete event\n\n| Param              | Type                                                            |\n| ------------------ | --------------------------------------------------------------- |\n| **`eventName`**    | <code>'complete'</code>                                         |\n| **`listenerFunc`** | <code><a href=\"#completedlistener\">CompletedListener</a></code> |\n\n**Returns:** <code>Promise&lt;<a href=\"#pluginlistenerhandle\">PluginListenerHandle</a>&gt; & <a href=\"#pluginlistenerhandle\">PluginListenerHandle</a></code>\n\n**Since:** 5.0.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### ConfigureOptions\n\n| Prop             | Type                 |\n| ---------------- | -------------------- |\n| **`fade`**       | <code>boolean</code> |\n| **`focus`**      | <code>boolean</code> |\n| **`background`** | <code>boolean</code> |\n\n\n#### PreloadOptions\n\n| Prop                  | Type                 |\n| --------------------- | -------------------- |\n| **`assetPath`**       | <code>string</code>  |\n| **`assetId`**         | <code>string</code>  |\n| **`volume`**          | <code>number</code>  |\n| **`audioChannelNum`** | <code>number</code>  |\n| **`isUrl`**           | <code>boolean</code> |\n\n\n#### PluginListenerHandle\n\n| Prop         | Type                                      |\n| ------------ | ----------------------------------------- |\n| **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |\n\n\n#### CompletedEvent\n\n| Prop          | Type                | Description                | Since |\n| ------------- | ------------------- | -------------------------- | ----- |\n| **`assetId`** | <code>string</code> | Emit when a play completes | 5.0.0 |\n\n\n### Type Aliases\n\n\n#### CompletedListener\n\n<code>(state: <a href=\"#completedevent\">CompletedEvent</a>): void</code>\n\n</docgen-api>\n","readmeFilename":"README.md"}