{"_id":"@bretkikehara/can-autoplay","_rev":"7-2cb381a926228224a713ae8ee680c3c7","name":"@bretkikehara/can-autoplay","dist-tags":{"latest":"3.1.2"},"versions":{"3.0.1":{"name":"@bretkikehara/can-autoplay","version":"3.0.1","main":"build/can-autoplay.cjs.js","module":"build/can-autoplay.es.js","author":{"name":"Caio Gondim","email":"me@caiogondim.com"},"license":"MIT","private":false,"devDependencies":{"ava":"^0.25.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","doctoc":"^1.3.0","google-closure-compiler-js":"^20170910.0.1","jsdom":"^11.4.0","mime-types":"^2.1.17","rollup":"^0.55.1","rollup-plugin-babel":"^3.0.3","standard":"^10.0.3"},"scripts":{"build":"rollup -c && cp lib/*.d.ts build","generate":"AUDIO=./media/audio.mp3 VIDEO=./media/video.mp4 OUTPUT=./lib/media.js node ./tools/blob-generator.js","minify":"google-closure-compiler-js 2>/dev/null build/can-autoplay.js > build/can-autoplay.min.js","watch":"rollup -c -w","lint":"standard 'lib/**/*.js' 'test/**/*.js'","doc":"doctoc README.md","test":"ava && yarn run lint","prepublishOnly":"yarn test && yarn build && yarn minify"},"ava":{"files":["test/*.spec.js"],"require":["babel-register","./test/setup.js"]},"gitHead":"9fde67805be9e368665cedf9a68bf0a9694e5d4e","description":"The auto-play feature detection in HTMLMediaElement (`<audio>` or `<video>`).","_id":"@bretkikehara/can-autoplay@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"},"dist":{"integrity":"sha512-mj6cyU4oy62AJNKDdw6ZayR6Ft8tb/nwh7w7NaiCFGAfSYt6HA9ERALmTFA1VV4Lvvwub3t/UjxnY/iQCRytlg==","shasum":"3c802bc255c18c1dc8ae3441e602d5324c7a89ab","tarball":"https://registry.npmjs.org/@bretkikehara/can-autoplay/-/can-autoplay-3.0.1.tgz","fileCount":24,"unpackedSize":385038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbW26rCRA9TVsSAnZWagAAw/cP/RNVcKQ9ZsUqSLQBjIUy\nCfS0L8aJvgD1OCLld0i8vzdTXpTHi78bhZlrw6uKTZsQJEMEkO5RXhIVuuVd\nJXvcjiZNya99tIX7PzJmc+0+UZLBhN/KI7eYGKg/OPDyHHGmwcK9mY+SFdfO\nSsaeNx1hUYlmE82EO5T/I84d6wxymcLRzXhKvwvUIMvF2vmf8nERjAloRahQ\nSvdAwAGQUdoNOxph4OvUJxCBZTqQuKN0OREbJY/lPuTqvhvp1ZFPuoo/oYgR\njMujIkK8quiW12Mtf2NecmDHRxdGXCt5c0fztbZaFm8ZWcBaY5o3hj+dr+jJ\nC/rFHsTVRAd7FBbcdvqzrgFFkCOb0OntOP0jIjBrr/Y/W3s19PlIjTIObvvJ\nUjJPlLK8dTdTrUbqmIf/zWxjl4hoYa3lH29EN2N4Z2vXFQ/1IAEpA8ZGZFaO\nUSmBrt2VDn4hl4zS2x7v4Rz2dG4iNJTeyinP3PGNgT3UudRC52xYmvKCBfjP\n6Lm6+vxjgq8Nl9ZbN2uUvo0k3vc6xqnhSsRA/flqCFtF6yMTixpRlIrsai2Q\nl1OjiZcg1UC+XRX/MKxJjd2PnjRHc+Lh+OGlG7yEhUzE+Z4Q72tmXdi7/wKY\ntqAxpX9rDnsm5Okf2VOfC6W3jhVsa1f1j4TPZaO140mO0eA5lZu6ccWiRfr8\n8aPA\r\n=nh7+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBpeZOEkeCTL/yIMwj3kGxrpvYzZgkoV8rlCL1BrX4bAIhAMgTN7hRxcWLsK3dxVkY9lfZL7RjBgR/DqDVZ5WDxnHZ"}]},"maintainers":[{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/can-autoplay_3.0.1_1532718763151_0.43309129004621294"},"_hasShrinkwrap":false},"3.0.2":{"name":"@bretkikehara/can-autoplay","version":"3.0.2","main":"build/can-autoplay.cjs.js","module":"build/can-autoplay.es.js","author":{"name":"Caio Gondim","email":"me@caiogondim.com"},"license":"MIT","private":false,"devDependencies":{"ava":"^0.25.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","doctoc":"^1.3.0","google-closure-compiler-js":"^20170910.0.1","jsdom":"^11.4.0","mime-types":"^2.1.17","rollup":"^0.55.1","rollup-plugin-babel":"^3.0.3","standard":"^10.0.3"},"scripts":{"build":"rollup -c","generate":"AUDIO=./media/audio.mp3 VIDEO=./media/video.mp4 OUTPUT=./lib/media.js node ./tools/blob-generator.js","minify":"google-closure-compiler-js 2>/dev/null build/can-autoplay.js > build/can-autoplay.min.js","watch":"rollup -c -w","lint":"standard 'lib/**/*.js' 'test/**/*.js'","doc":"doctoc README.md","test":"ava && yarn run lint","prepublishOnly":"yarn test && yarn build && yarn minify"},"ava":{"files":["test/*.spec.js"],"require":["babel-register","./test/setup.js"]},"gitHead":"8169c790c5f3169881d331552f74928452c867ba","description":"The auto-play feature detection in HTMLMediaElement (`<audio>` or `<video>`).","_id":"@bretkikehara/can-autoplay@3.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"},"dist":{"integrity":"sha512-0G/AlyU3yo09hC23gfulbmU4x5EKcqhgQHIf5MR3F9w23Erj22Fmuo3v9wRcThD4X8lk27/qH/EWhfkeVwtZEg==","shasum":"3cea3eed52e5052ffb6131fe691fc1335f59aabe","tarball":"https://registry.npmjs.org/@bretkikehara/can-autoplay/-/can-autoplay-3.0.2.tgz","fileCount":22,"unpackedSize":216069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbW4gkCRA9TVsSAnZWagAA70QP/iZQHy/lj2macFncADv0\nXlZAgHG4VoMW7RJcomqgQcDMMBQuDYmljRXWOALDDAEIfL13fNf3Y6OKor99\nXmmSzr4Nu/k8uqCyeLs4KGcLGPgNJvu68xwibJM4+fuLV8IO2mMekvBgp47/\nXMMPw2b/JtcjfWH9lOIOEWCtvBduGHe9+fxJQnJ8ZVL0cjfNODRtxXk1e1uS\nDc6LQzevfsoe6n14jEiFMKM8EcNK56e9uORaiJuA4o9oDknDRHrDE3Q4jRnT\ndgPEa8OKNNOk/jXZseeNRVjjayWf7f2qK031nQCm8rF6t5repFVZO7OD/TzL\nqfFInaZSS/DBt1T4Q1XK9LY9jFXmNcu/KVGTv8jFsSUFZGMrCMwZbzsTGRo6\nHOwaPcJL/++y8qrUdnm2l41YvlW1s4ROXeVKXfKBuzdTvK1PXCklAZi71Vw+\nAwilzRvLGAf7yUiw+UrOFL0TfTp1gjiAr7/OJ63ZGL+oWtJASl62/8+vFWwv\nuVjj5WH70KuOv0sU2/ValNMOxT/FqxR900/0YCHzregmIqF10tTi/GdvOGtN\nCOJ49Iior1/OCFWiGnSGKY7Y0jUXDBEqAkErpeMyEdVQEtVH6at8xw3+X11W\nvzQ3WlZn1F9UjqltLUzQ2avoNbsdnYYTvdr7T6E+hjfVDN9cfZU26nsjucLh\n917S\r\n=I/3C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/6n0XZeClL8OLYDclBZGBFjtioCREiVH1Ket5A1KX2QIhAK+gPWRaOPayExqrhFEymXA9QJY1G+tg5r3mxFNu1MB9"}]},"maintainers":[{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/can-autoplay_3.0.2_1532725284435_0.843371455405588"},"_hasShrinkwrap":false},"3.1.0":{"name":"@bretkikehara/can-autoplay","version":"3.1.0","main":"build/can-autoplay.cjs.js","module":"build/can-autoplay.es.js","author":{"name":"Caio Gondim","email":"me@caiogondim.com"},"license":"MIT","private":false,"devDependencies":{"doctoc":"^1.3.0","google-closure-compiler-js":"^20170910.0.1","mime-types":"^2.1.17","rollup":"^0.55.1","rollup-plugin-typescript2":"^0.16.1","tslint":"^5.11.0","typescript":"^2.9.2"},"scripts":{"build":"rollup -c","generate":"AUDIO=./media/audio.mp3 VIDEO=./media/video.mp4 OUTPUT=./lib/media.js node ./tools/blob-generator.js","minify":"google-closure-compiler-js 2>/dev/null build/can-autoplay.js > build/can-autoplay.min.js","watch":"rollup -c -w","lint":"tslint -c tslint.json 'lib/**/*.ts'","doc":"doctoc README.md","prepublishOnly":"yarn build && yarn minify"},"gitHead":"7b8beccebf98508bae93dccbbab5d140d00b8ef5","description":"The auto-play feature detection in HTMLMediaElement (`<audio>` or `<video>`).","_id":"@bretkikehara/can-autoplay@3.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"},"dist":{"integrity":"sha512-DQaQRBYqyWnZ9XzbpXCrLvECEtwC1Fvp9l1fxHH4VzkFyfqYCtYO7zrTve6PNhn/Wj/9jIGPaANXpKwXiKwhUQ==","shasum":"c9794fe5fa0171c38ac5099499e94cd5fa0722ee","tarball":"https://registry.npmjs.org/@bretkikehara/can-autoplay/-/can-autoplay-3.1.0.tgz","fileCount":19,"unpackedSize":67421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbW60tCRA9TVsSAnZWagAAgy4P/2m7/NlYqggIl4Ywgqmr\nb4kBfHprHmqAaX2GFXDx4ySJB+zM9+6jBrEl/M9QFe7ACwO3QBudm2g3mjjk\nElE9qMIupHhG+5Btt/xmEYMhqD86wy8IAbY5UvMyMXs7iqnr8ZCQq/1hfcww\ntNI3ik2D8XUurWS/+5oo7/AEcf5jNHEt4Y9IadG8/HagkQ8izBhns42gm0DH\nBfANh/ULgcWwcsaDw6SJPxDFRkTrGeIvT2fYYn7oQQtuGDY4c47JnZMEaxm+\ngm8dQ6xL8Nvopu9CmXRhj/VjBcMZ6WIHAfC2Qty5jmoQu02QuOOzzUAICpR5\n3a/hwaygpvhWUoQKtoC1syfNu6JP53xf7aLLjWyjTIF6ZBv6Hpgke/bFGD/N\nYjcmj00akEHabxpVWfwaZ8pZZumEWY6aI1uV9z4D/t1eVqg3ZfUNISv61ZT1\nHbIdB5c3cMTslc+Sk/rFej7up8PW/IRm4fw4LWm5M7ZXVKkFxz4jwsLTFBol\ndpP374BFttsegqNPr1hq+UxMiu0GIqm7cPlNw13TdRL0ODNC0y2xnsV8Wu1q\nTfpFtJlhhIhQupmCNsG7oJeYQ+eyI5eThwgcyUKHgwgSkVlaLpdvzJKN/rMx\nVaB+C8pMqehSghbpoAbNQTogO15nxB7cegra4tL0tYWhGPeoOyhvWKnPVlQV\n3vwF\r\n=HHwR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC460xPPnoXEHOYeL7s2mZ8NAMWFMixo+2CZa5iMCirHAIgNsXgtM2SSRzy3rm2LNJoViUeSNuwtOnkvCMgmUIGs74="}]},"maintainers":[{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/can-autoplay_3.1.0_1532734765877_0.6638757985436303"},"_hasShrinkwrap":false},"3.1.1":{"name":"@bretkikehara/can-autoplay","version":"3.1.1","main":"build/can-autoplay.cjs.js","types":"build/index.d.ts","module":"build/can-autoplay.es.js","author":{"name":"Caio Gondim","email":"me@caiogondim.com"},"license":"MIT","private":false,"devDependencies":{"doctoc":"^1.3.0","google-closure-compiler-js":"^20170910.0.1","mime-types":"^2.1.17","rollup":"^0.55.1","rollup-plugin-typescript2":"^0.16.1","tslint":"^5.11.0","typescript":"^2.9.2"},"scripts":{"build":"rollup -c","generate":"AUDIO=./media/audio.mp3 VIDEO=./media/video.mp4 OUTPUT=./lib/media.js node ./tools/blob-generator.js","minify":"google-closure-compiler-js 2>/dev/null build/can-autoplay.js > build/can-autoplay.min.js","watch":"rollup -c -w","lint":"tslint -c tslint.json 'lib/**/*.ts'","doc":"doctoc README.md","prepublishOnly":"yarn build && yarn minify"},"gitHead":"7b8beccebf98508bae93dccbbab5d140d00b8ef5","description":"The auto-play feature detection in HTMLMediaElement (`<audio>` or `<video>`).","_id":"@bretkikehara/can-autoplay@3.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"},"dist":{"integrity":"sha512-U77S1VWZ8fpHqCr1uBhqt1t8tjmdCyh0LV2OqsWscqisWGKfUi+Izn6wCk9rhtV6LoSNe34ATEypZlTePiKmlQ==","shasum":"d865564baecea85757d4265c0ec507bf2a95e319","tarball":"https://registry.npmjs.org/@bretkikehara/can-autoplay/-/can-autoplay-3.1.1.tgz","fileCount":19,"unpackedSize":67452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbW67MCRA9TVsSAnZWagAAd+4P/2Zd5B0uxe/Cnk/yiIz6\nLU5L7s3zTJdm+RGZb7Mj2ZwQD/neUgOQgnqbrmoK4yfN3K+DYD+ba4rErZWy\njwSiePXZDqkqJlaBxP1Ksa1XubADkGgE37Dmj2X0sV+phX2RzL6HPEzhSpo+\n2yFx5eBDCTUVIwDlAITwmibufyIMdu7XR2EkmtIaVohrBiFpTDNmpoL4wA2S\nYGm+w4jcLhtpmwIQhnGvvTVb4xEzS47E3OM0/Z+C66JsG9G4Xg7UYu+E4VqB\nXLpQFYhZMHFdghzsx/mq3kWTR7BF4BycFPgh1P97FqcAH5t1zKOAjt5ZZGRM\nJAbKlrRFwlNgTeTBI9AIPRGIpE6V5AnwE5s5ZgF86WEjVenzSSWjybq9rxMD\nAEABAUB/Nim8D8o8mmdZzGlhf7Dyn1GaREKAZ7a4TYU6mWQ0X7QhEJk20dnD\nvRLVXxlZ990KxXJNulL2GxHJN1MCc3LGM7dgDEbAhE+mGRcQUfQct9wGdDnR\ngW33ktQ0MXqwLVZ4sKjZnEEMvZBDXJBgMYJAXqZ3K/6kqF0B7c/2Rx59Ftzn\nFzZYrebjtFnoq8w2YPnDFvXiBhFHAjA+dpLH2hLqAYJmrzBCxUCUHootDEou\ncopCsRDT2adi47NZOWIwRwI6wYdxatz1XZLAUffkCG70YZ0SQgdyytTp/i/h\naDj/\r\n=TOBB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2FOQHRUONu2f+Hc84UtM50A8rb8N/HvwVuYaR1zwowQIgOJ70eKsqtJdQJv27LxCXtkRgZ/3ig7APyWMCTjxDaDQ="}]},"maintainers":[{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/can-autoplay_3.1.1_1532735180364_0.7561713101116729"},"_hasShrinkwrap":false},"3.1.2":{"name":"@bretkikehara/can-autoplay","version":"3.1.2","main":"build/can-autoplay.cjs.js","types":"build/index.d.ts","module":"build/can-autoplay.es.js","author":{"name":"Caio Gondim","email":"me@caiogondim.com"},"license":"MIT","private":false,"devDependencies":{"doctoc":"^1.3.0","google-closure-compiler-js":"^20170910.0.1","mime-types":"^2.1.17","rollup":"^0.55.1","rollup-plugin-typescript2":"^0.16.1","tslint":"^5.11.0","typescript":"^2.9.2"},"scripts":{"build":"rollup -c","generate":"AUDIO=./media/audio.mp3 VIDEO=./media/video.mp4 OUTPUT=./lib/media.js node ./tools/blob-generator.js","minify":"google-closure-compiler-js 2>/dev/null build/can-autoplay.js > build/can-autoplay.min.js","watch":"rollup -c -w","lint":"tslint -c tslint.json 'lib/**/*.ts'","doc":"doctoc README.md","prepublishOnly":"yarn build && yarn minify"},"description":"The auto-play feature detection in HTMLMediaElement (`<audio>` or `<video>`).","licenseText":"MIT License\n\nCopyright (c) 2017 video-dev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@bretkikehara/can-autoplay@3.1.2","dist":{"shasum":"8385d9c0afd2c91ea3b2f4d8b4d480c8a27d9de5","tarball":"https://registry.npmjs.org/@bretkikehara/can-autoplay/-/can-autoplay-3.1.2.tgz","fileCount":29,"unpackedSize":64381,"integrity":"sha512-tMtIvM3qvQGkQ70x8+zyEe+qJyG6h5A93OQSX5AdhF7FcIrxLz3zhSe0Jl1Z/GdOhNMmSYBf2Y33dVdzrWwQgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCO1IHW/EfSQXJAA8LeurwtTq4qHIYTxsvPAajIB2SfwIhAJGq+jslqvfxHCTVkp6ozRIuq/3Q/QVF53OuBhPjyL89"}]},"maintainers":[{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"}],"_npmUser":{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/can-autoplay_3.1.2_1532735638162_0.11791509411051182"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-27T19:12:43.150Z","3.0.1":"2018-07-27T19:12:43.283Z","modified":"2022-06-12T15:29:02.681Z","3.0.2":"2018-07-27T21:01:24.579Z","3.1.0":"2018-07-27T23:39:25.955Z","3.1.1":"2018-07-27T23:46:20.480Z","3.1.2":"2018-07-27T23:53:58.227Z"},"maintainers":[{"name":"bretkikehara","email":"bret.k.ikehara@gmail.com"}],"description":"The auto-play feature detection in HTMLMediaElement (`<audio>` or `<video>`).","author":{"name":"Caio Gondim","email":"me@caiogondim.com"},"license":"MIT","readme":"# can-autoplay.js\n\nThe auto-play feature detection in HTMLMediaElement (`<audio>` or `<video>`).\n\n![FileSize](http://img.badgesize.io/video-dev/can-autoplay/master/build/can-autoplay.min.js#1?compression=gzip)\n![Version](https://img.shields.io/npm/v/can-autoplay.svg)\n\n[Demo page](https://video-dev.github.io/can-autoplay/)\n\nTable of contents:\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n\n- [Installation](#installation)\n- [Files](#files)\n- [API](#api)\n  - [`audio(options)`](#audiooptions)\n  - [`video(options)`](#videooptions)\n- [Example](#example)\n- [Media](#media)\n- [Implementation Details](#implementation-details)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## Installation\n\n```\nnpm install can-autoplay\n```\n\n## Files\n\nBuild files are available in the `build/` directory. Bundlers will choose get the correct file chosen for them but if you just want to include it on the page, grab the `build/can-autoplay.js` file.\n\n## API\n\n### `audio(options)`\n\nParameters:\n\n- options.inline `<Boolean>`, check if auto-play is possible for an inline playback, default value is `false`\n- options.muted `<Boolean>`, check if auto-play is possible for a muted content\n- options.timeout `<Number>`, timeout for a check, default value is `250` ms\n\nReturns:\n\n- `<Promise>`, resoles to a `<Object>`:\n  - `result <Boolean>`, `true` - if auto-play is possible\n  - `error <Error>`, internal or timeout Error object\n\n\n```js\ncanAutoplay.audio().then(({result}) => {\n  if (result === true) {\n    // Can auto-play\n  } else {\n    // Can not auto-play\n  }\n})\n```\n\n### `video(options)`\n\nParameters:\n\n- options.inline `<Boolean>`, check if auto-play is possible for an inline playback, default value is `false`\n- options.muted `<Boolean>`, check if auto-play is possible for a muted content\n- options.timeout `<Number>`, timeout for a check, default value is `250` ms\n\nReturns:\n\n- `<Promise>`, resoles to a `<Object>`:\n  - `result <Boolean>`, `true` - if auto-play is possible\n  - `error <Error>`, internal or timeout Error object\n\n```js\ncanAutoplay.video().then(({result}) => {\n  if (result === true) {\n    // Can autoplay\n  } else {\n    // Can not autoplay\n  }\n})\n```\n\n## Example\n\n```js\nimport canAutoPlay from 'can-autoplay';\n\ncanAutoPlay\n    .video({timeout: 100, muted: true})\n    .then(({result, error}) => {\n        if(result === false){\n            console.warn('Error did occur: ', error)\n        }\n    })\n```\n\n## Media\n\n- `audio.mp3`. Created by Weston Ruter (@westonruter). Smallest possible (<0.000001 seconds long) audio file.\n- `video.mp4`. Source: https://github.com/mathiasbynens/small\n\n## Implementation Details\n\nIf it's required to have a legacy browser support you could use latest `v2.x.x` version of the library.\n","readmeFilename":"README.md"}