{"_id":"@akuno/flv.js","_rev":"5-6516925b2f93347d0064b4b9ac401bda","time":{"created":"2022-01-10T07:18:57.141Z","1.6.2":"2022-01-10T06:39:45.822Z","modified":"2022-04-04T12:31:45.165Z","1.6.1":"2022-01-10T06:57:11.194Z","1.6.0":"2022-01-10T07:18:57.488Z","1.6.5":"2022-03-01T08:28:14.587Z"},"name":"@akuno/flv.js","dist-tags":{"latest":"1.6.5"},"versions":{"1.6.0":{"_from":"flv.js@^1.5.0","_id":"@akuno/flv.js@1.6.0","_inBundle":false,"_location":"/flv.js","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"flv.js@^1.5.0","name":"flv.js","escapedName":"flv.js","rawSpec":"^1.5.0","saveSpec":null,"fetchSpec":"^1.5.0"},"_requiredBy":["/"],"_spec":"flv.js@^1.5.0","author":{"name":"Kuno","email":"1041089803@qq.com"},"dependencies":{"es6-promise":"^4.2.8","webworkify-webpack":"^2.1.5"},"deprecated":false,"description":"Transform HTML5 FLV Player","private":false,"devDependencies":{"@types/node":"^16.3.3","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","browser-sync":"^2.27.4","eslint":"^7.30.0","exports-loader":"^3.0.0","source-map-loader":"^3.0.0","terser-webpack-plugin":"^5.1.4","ts-loader":"^9.2.3","typescript":"^4.3.5","webpack":"^5.45.1","webpack-cli":"^4.7.2"},"homepage":"https://github.com/Bilibili/flv.js#readme","keywords":["html5","flv","mse","javascript"],"license":"Apache-2.0","main":"./dist/flv.js","name":"@akuno/flv.js","repository":{"type":"git","url":"git+https://github.com/Bilibili/flv.js.git"},"scripts":{"build":"webpack --mode=production --progress","build:debug":"webpack --mode=development --progress","dev":"webpack --mode=development --progress --watch","dtslint":"dtslint types","pub":"npm publish --access public"},"types":"./d.ts/flv.d.ts","version":"1.6.0","bugs":{"url":"https://github.com/Bilibili/flv.js/issues"},"_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-QF3oQAuvcShfs4mR8NZtnlkeS7uJisuBwJ4zzZlDZU+QqvPbB/rFLIpcNp91VilE1cOX1S9mIRCJYggmWz3j6A==","shasum":"4287c3f841b851bb71578ad9eec6c5a58ff321f0","tarball":"https://registry.npmjs.org/@akuno/flv.js/-/flv.js-1.6.0.tgz","fileCount":56,"unpackedSize":2263518,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh293hCRA9TVsSAnZWagAAEUUP/1qPNPmJ8L3Cyr3d6aou\nnjclvNAprUrVjYhMM9LcxyqGcX1o+3/5NYDGWIkVKmqtFUNeUF98oaQOpe8a\nULWP32AGFucQ1HhnQNDTQABOW00OGPXqI8oe9VqGm0sxELjJDHeU00kL/a/I\nFe1N5yefRQEDV63R13uyoon6aj+eoz5SpBZHSkpsruxSH+V/aG4DbHZr5HmG\nDLP6XiWwPscQmtN4mtuePZ+DzihQwU5NfoCJdtILuB+Oh8i5FisyayYKTcbk\nCVgT8zVvT5ru7FnJG7/3yaT9fHKeUcKS55XFY/BdkZvyr6T8+T8Hi5nhqWGb\nN/Nbnuw4sE6p6ctwzBstJ3XAo/CzJBc4Ow1AYpbJ+taazqkpq25uaQWBLCJb\nr2VSX3+o9B38bmdTUs6est2NOyMvsJQ3defFMqfhmDYAaY5kAH8NBAkdc4l8\nE1zf4yYnHlNwihXqseWYNoP5g8ZrkHLUMeRh+nBEEyp48gkO7HjZARcG/Ice\n/9fGM+IxPmHoSxPPZksdGIMBKYJArwksmVWxOiraDfrYHk8hmUx7YcjJGUN2\neHxaBBpHxqmyRXEtsCdTj+VdjkGTP/3UqalEPYDCcLrgUpvG8Z6JFfaZG2Gk\njNb45BnRaShuzVNN1Va8Y9Ez3s/jjQkIHo6C77rhSnMRRQRNPaPRI+vqrZj9\nedrA\r\n=F9zB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCbIAZQpp2i6eAaSc2y5fzQcf3hA6VzSshfQknxkOK1QIhAPcFTMd1UTQcjL/iKOhoakufO+SpUh6xbIkiBio3dPy9"}]},"_npmUser":{"name":"akuno","email":"1041089803@qq.com"},"directories":{},"maintainers":[{"name":"akuno","email":"1041089803@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flv.js_1.6.0_1641799137202_0.6709033025976658"},"_hasShrinkwrap":false},"1.6.5":{"author":{"name":"Kuno","email":"1041089803@qq.com"},"dependencies":{"es6-promise":"^4.2.8","webworkify-webpack":"^2.1.5"},"deprecated":false,"description":"Transform HTML5 FLV Player","devDependencies":{"@types/node":"^16.3.3","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","browser-sync":"^2.27.4","eslint":"^7.30.0","exports-loader":"^3.0.0","source-map-loader":"^3.0.0","terser-webpack-plugin":"^5.1.4","ts-loader":"^9.2.3","typescript":"^4.3.5","webpack":"^5.45.1","webpack-cli":"^4.7.2"},"homepage":"https://github.com/Bilibili/flv.js#readme","keywords":["html5","flv","mse","javascript"],"license":"Apache-2.0","main":"./dist/flv.js","name":"@akuno/flv.js","private":false,"repository":{"type":"git","url":"git+https://github.com/Bilibili/flv.js.git"},"scripts":{"build":"webpack --mode=production --progress","build:debug":"webpack --mode=development --progress","dev":"webpack --mode=development --progress --watch","dtslint":"dtslint types","pub":"npm publish --access public"},"types":"./d.ts/flv.d.ts","version":"1.6.5","bugs":{"url":"https://github.com/Bilibili/flv.js/issues"},"_id":"@akuno/flv.js@1.6.5","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tE62zHqs4O8U6wqkY0i49QJw5z3BZnsgj72RA9nhM742ZPAg2aricVhkAB2e3sk+xnQqeh2qrjNS3e+5OYHjmw==","shasum":"b8b60cd7b830adc83d04abd066a01708a3546631","tarball":"https://registry.npmjs.org/@akuno/flv.js/-/flv.js-1.6.5.tgz","fileCount":56,"unpackedSize":2263533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHdkeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqynRAAhB+0Ul5zl4BsBZxJVeYb4lMvOa5JkOJEu++B9wmkZ2NjohSC\r\nRVoWBZ1d7OUn92ZmRKcm7rlw9bunFfQKT+C/ZYy8tRYRBZMQn3SRzhyun0ja\r\nq5jLH1S47EwOurUyg+3uev0yEgZiP/boVUj2CIiSPJ8z8Q+J9DvbjjD4wyD2\r\nbOolz08zt5pL/d7WRhfYI1J5hDd3tIuOo6PXZvL8uiNpkcGlNw1IoqDHrnVp\r\nXe6AIfGwLzXap55z/CUcY4V29rEN7++Lt6Zrkiy7mhGqs/kOqKvLEiQuOWt0\r\nmjlw/6FjqXN3I0F+ZNaVJyq9GyfwcUhJ06rLWD6Py9kKOBgGzkbczdgwRWxq\r\nQ56XNLbDZXreTn6+6QP2OhkMlLOL3wFeKmTicaaK0lWynTFtPxAo6x/qaMy7\r\nXXnSF6AthSAZxbZldaYPddxbASCcwB7SWQ+sQG+8jWyt/BQp1mHPZ/y59Qe8\r\nNqHsD4h4202TNZ1wJzGZzlZMiPcWJ2PswnVlEPOa5xk1UD/4zz4hDxHiNOfE\r\nm66t4pvf0udSMsquGpb1MNoj+IIDg0aTiuli/2IxHu3066LIAQsgYOstPmmY\r\nNhMDgTuFCVQIUPlJzWgLMMjHHNdnfXHS/sshVtwEvXZ37yTdGZyWl+s/zQgB\r\nyHkRXnJEltM2wa5v9HJzhySqDZ74Md7pmJQ=\r\n=e32s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCymf8D+LJ8CzeQvj18UCyGEYA0Ucj7WEgnkcBBS4tr6gIhAOXIbxt4MUZDueghw6l4TODXyJ+7WWy+5ORNtbJr6+tJ"}]},"_npmUser":{"name":"akuno","email":"1041089803@qq.com"},"directories":{},"maintainers":[{"name":"akuno","email":"1041089803@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flv.js_1.6.5_1646123294365_0.7819158434008351"},"_hasShrinkwrap":false}},"maintainers":[{"name":"akuno","email":"1041089803@qq.com"}],"description":"Transform HTML5 FLV Player","homepage":"https://github.com/Bilibili/flv.js#readme","keywords":["html5","flv","mse","javascript"],"repository":{"type":"git","url":"git+https://github.com/Bilibili/flv.js.git"},"author":{"name":"Kuno","email":"1041089803@qq.com"},"bugs":{"url":"https://github.com/Bilibili/flv.js/issues"},"license":"Apache-2.0","readme":"\nflv.js  [![npm](https://img.shields.io/npm/v/flv.js.svg?style=flat)](https://www.npmjs.com/package/flv.js)\n======\nAn HTML5 Flash Video (FLV) Player written in pure JavaScript without Flash. LONG LIVE FLV!\n\nThis project relies on [Media Source Extensions][] to work.\n\n**For FLV live stream playback, please consider [mpegts.js][] which is under active development.**\n\n**This project will become rarely maintained.**\n\n[mpegts.js]: https://github.com/xqq/mpegts.js\n## Important Statement\n**This project is modified through bilibili's open source project [flv.js][]. The reason is that because flv.js encapsulates websocket, it cannot directly obtain messages pushed by websocket. By adding a configuration item wsMessageReturn to dynamically receive messages from websocket, it is possible to data source for further operations, such as video storage, etc.**\n\nThe configuration method is as follows:\n\n```bash\nlet _self = this\nthis.player = flvjs.createPlayer({\n  type: \"flv\",\n  isLive: true,\n  enableWorker: true,\n  hasAudio: false,\n  enableStashBuffer: false, // Enable IO stash buffer. \n  url: `ws://localhost:8888/rtsp?url=${this.rtspUrl}`,\n  wsMessageReturn: _self.getMessage,\n});\n```\n```bash\ngetMessage(data) {\n  //Do something with the data\n},\n```\n[flv.js]: https://www.npmjs.com/package/flv.js\n## Overview\nflv.js works by transmuxing FLV file stream into ISO BMFF (Fragmented MP4) segments, followed by feeding mp4 segments into an HTML5 `<video>` element through [Media Source Extensions][] API.\n\n[Media Source Extensions]: https://w3c.github.io/media-source/\n\n## Demo\n[http://bilibili.github.io/flv.js/demo/](http://bilibili.github.io/flv.js/demo/)\n\n## Features\n- FLV container with H.264 + AAC / MP3 codec playback\n- Multipart segmented video playback\n- HTTP FLV low latency live stream playback\n- FLV over WebSocket live stream playback\n- Compatible with Chrome, FireFox, Safari 10, IE11 and Edge\n- Extremely low overhead, and hardware accelerated by your browser!\n\n## Installation\n```bash\nnpm install --save flv.js\n```\n\n## Build\n```bash\nnpm ci                 # install dependencies / dev-dependences\nnpm run build:debug    # debug version flv.js will be emitted to /dist\nnpm run build          # minimized release version flv.min.js will be emitted to /dist\n```\n\n[cnpm](https://github.com/cnpm/cnpm) mirror is recommended if you are in Mainland China.\n\n## CORS\nIf you use standalone video server for FLV stream, `Access-Control-Allow-Origin` header must be configured correctly on video server for cross-origin resource fetching.\n\nSee [cors.md](docs/cors.md) for more details.\n\n## Getting Started\n```html\n<script src=\"flv.min.js\"></script>\n<video id=\"videoElement\"></video>\n<script>\n    if (flvjs.isSupported()) {\n        var videoElement = document.getElementById('videoElement');\n        var flvPlayer = flvjs.createPlayer({\n            type: 'flv',\n            url: 'http://example.com/flv/video.flv'\n        });\n        flvPlayer.attachMediaElement(videoElement);\n        flvPlayer.load();\n        flvPlayer.play();\n    }\n</script>\n```\n\n## Limitations\n- MP3 audio codec is currently not working on IE11 / Edge\n- HTTP FLV live stream is not currently working on all browsers, see [livestream.md](docs/livestream.md)\n\n## Multipart playback\nYou only have to provide a playlist for `MediaDataSource`. See [multipart.md](docs/multipart.md)\n\n## Livestream playback\nSee [livestream.md](docs/livestream.md)\n\n## API and Configuration\nSee [api.md](docs/api.md)\n\n## Debug\n```bash\nnpm ci         # install dependencies / dev-dependences\nnpm run dev    # watch file changes and build debug version on the fly\n```\n\n## Design\nSee [design.md](docs/design.md)\n\n## License\n```\nCopyright (C) 2016 Bilibili. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n","readmeFilename":"README.md"}