[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3031":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},3031,"flv.js","bilibili\u002Fflv.js","bilibili","HTML5 FLV Player",null,"JavaScript",23209,3350,591,425,0,3,4,1,71.9,"Apache License 2.0",false,"master",true,[],"2026-06-12 04:00:16","\nflv.js  [![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fflv.js.svg?style=flat)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fflv.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:\u002F\u002Fgithub.com\u002Fxqq\u002Fmpegts.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 `\u003Cvideo>` element through [Media Source Extensions][] API.\n\n[Media Source Extensions]: https:\u002F\u002Fw3c.github.io\u002Fmedia-source\u002F\n\n## Demo\n[http:\u002F\u002Fbilibili.github.io\u002Fflv.js\u002Fdemo\u002F](http:\u002F\u002Fbilibili.github.io\u002Fflv.js\u002Fdemo\u002F)\n\n## Features\n- FLV container with H.264 + AAC \u002F 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 \u002F dev-dependences\nnpm run build:debug    # debug version flv.js will be emitted to \u002Fdist\nnpm run build          # minimized release version flv.min.js will be emitted to \u002Fdist\n```\n\n[cnpm](https:\u002F\u002Fgithub.com\u002Fcnpm\u002Fcnpm) 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\u002Fcors.md) for more details.\n\n## Getting Started\n```html\n\u003Cscript src=\"flv.min.js\">\u003C\u002Fscript>\n\u003Cvideo id=\"videoElement\">\u003C\u002Fvideo>\n\u003Cscript>\n    if (flvjs.isSupported()) {\n        var videoElement = document.getElementById('videoElement');\n        var flvPlayer = flvjs.createPlayer({\n            type: 'flv',\n            url: 'http:\u002F\u002Fexample.com\u002Fflv\u002Fvideo.flv'\n        });\n        flvPlayer.attachMediaElement(videoElement);\n        flvPlayer.load();\n        flvPlayer.play();\n    }\n\u003C\u002Fscript>\n```\n\n## Limitations\n- MP3 audio codec is currently not working on IE11 \u002F Edge\n- HTTP FLV live stream is not currently working on all browsers, see [livestream.md](docs\u002Flivestream.md)\n\n## Multipart playback\nYou only have to provide a playlist for `MediaDataSource`. See [multipart.md](docs\u002Fmultipart.md)\n\n## Livestream playback\nSee [livestream.md](docs\u002Flivestream.md)\n\n## API and Configuration\nSee [api.md](docs\u002Fapi.md)\n\n## Debug\n```bash\nnpm ci         # install dependencies \u002F dev-dependences\nnpm run dev    # watch file changes and build debug version on the fly\n```\n\n## Design\nSee [design.md](docs\u002Fdesign.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:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-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","flv.js 是一个使用纯 JavaScript 编写的 HTML5 FLV 播放器，无需 Flash 支持。它通过将 FLV 文件流转封装为 ISO BMFF（分段 MP4）格式，并利用 Media Source Extensions API 将这些片段送入 HTML5 `\u003Cvideo>` 元素中来实现播放功能。项目支持 H.264 + AAC\u002FMP3 编解码器的 FLV 容器、多部分分段视频播放及 HTTP FLV 低延迟直播流播放等功能，兼容 Chrome、Firefox、Safari 10、IE11 和 Edge 等主流浏览器，且具有极低的开销和浏览器硬件加速特性。适用于需要在现代Web环境中直接播放FLV格式视频文件或直播流的各种场景，尤其是对性能要求较高且不希望依赖Flash插件的情况。",2,"2026-06-11 02:52:16","top_language"]