{"id":26063985,"url":"https://github.com/coffe1891/videojs-flvh265","last_synced_at":"2025-04-11T13:14:24.898Z","repository":{"id":55802254,"uuid":"285983204","full_name":"coffe1891/videojs-flvh265","owner":"coffe1891","description":"This is a Video.js' Tech for FLV + H265","archived":false,"fork":false,"pushed_at":"2020-08-27T07:20:38.000Z","size":4940,"stargazers_count":73,"open_issues_count":9,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T09:47:26.574Z","etag":null,"topics":["flv","h264","h265","h265-hevc","playback","videojs","webassembly"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coffe1891.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-08T05:56:07.000Z","updated_at":"2024-12-27T04:40:23.000Z","dependencies_parsed_at":"2022-08-15T07:10:41.144Z","dependency_job_id":null,"html_url":"https://github.com/coffe1891/videojs-flvh265","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coffe1891%2Fvideojs-flvh265","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coffe1891%2Fvideojs-flvh265/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coffe1891%2Fvideojs-flvh265/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coffe1891%2Fvideojs-flvh265/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coffe1891","download_url":"https://codeload.github.com/coffe1891/videojs-flvh265/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247606217,"owners_count":20965728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flv","h264","h265","h265-hevc","playback","videojs","webassembly"],"created_at":"2025-03-08T17:57:50.333Z","updated_at":"2025-04-11T13:14:24.874Z","avatar_url":"https://github.com/coffe1891.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# videojs-flvh265\n\nThis is a Video.js [Tech](https://docs.videojs.com/tutorial-tech_.html) for FLV + H265.\nMake [Video.js](https://videojs.com/) has the ability to play flv + live/local video encoded with h264/h265.It's decoder comes from [WXInlinePlayer](https://github.com/coffe1891/WXInlinePlayer).\n\n## Features\nFormat↓  | H.264 | H.265 | live stream | local file | seek | comment\n---------|-------|-------|-------------|------------|------|-------------\n**.flv** | √     | √     | √           | √          | ×    |\n**.mp4** | ×     | ×     | ×           | ×          | ×    | coming soon\n**.ts**  | ×     | ×     | ×           | ×          | ×    | no plan\n\n## Installation\n\n```sh\nnpm install --save videojs-flvh265\n```\n\n## Localhost DEMO\n\n```sh\nnpm run serve\n```\n\n## Quick start\n\nThis is the simplest case. Get the script in whatever way you prefer and include the plugin _after_ you include **video.js**, so that the `videojs` global is available.\n\n### 1. Using `\u003cscript\u003e` Tag\n```html\n\u003clink href=\"/node_modules/video.js/dist/video-js.css\" rel=\"stylesheet\"\u003e\n\u003cvideo id=\"player\" \n  height=\"300\" \n  width=\"600\" \n  class=\"video-js vjs-big-play-centered\"\n  controls\n  autoplay\n  loop\n  ish265\n  islive\n  hasvideo\n  hasaudio\n\u003e\n  \u003csource src=\"http://localhost:8080/src/5s_265.flv\" type='video/x-flv'/\u003e\n\u003c/video\u003e`\n\u003cscript src=\"/node_modules/video.js/dist/video.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/node_modules/videojs-flvh265/dist/videojs-flvh265.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nvideojs('player', {\n  techOrder: [\n    'html5',\n    'flvh265'\n  ],\n  controlBar:{\n    pictureInPictureToggle:false //sorry,we don't support pictureInPicture now\n  }\n});\n\u003c/script\u003e\n```\n\n### 2. Using ECMAScript `import` and Webpack\nAnd this javascript library supports UMD also.\n```javascript\nimport videojs from 'video.js';\nimport 'videojs-flvh265';\nvideojs('player', {\n  techOrder: [\n    'html5',\n    'flvh265'\n  ],\n  controlBar:{\n    pictureInPictureToggle:false //sorry,we don't support pictureInPicture now\n  }\n});\n```\n\n## Custom attributes for `\u003cvideo\u003e` Tag\n```JavaScript\nish265    // boolean  : true/false\n          //            true means that video is encoded with h265, false means h264.\n\nislive    // boolean\n\nhasvideo  // boolean\n\nhasaudio  // boolean\n\nlib       // string   : Folder path of libs.\n          //            Default value of lib is \"/node_modules/wx-inline-player-new/example/\".\n          //            Most of the time, you must set libs folder path,just copy these libs from \n          //            \"/node_modules/wx-inline-player-new/example/\" to your final folder,then set\n          //            lib=\"the final folder path\",e.g. lib=\"https://www.domain.com/libs/\"\n```\n\n## Events\nsupport these events of Video.js\n```\n\n  loadstart\n  loadedmetadata\n  play\n  pause\n  playing\n  waiting\n  ended\n  volumechange\n  durationchange\n  error\n\n```\n\n## Reference\n  * [FLV wikipedia](https://zh.wikipedia.org/wiki/Flash_Video#FLV%E6%96%87%E4%BB%B6%E6%9E%84%E6%88%90)\n  * [FLV cnblogs](https://www.cnblogs.com/lidabo/p/9018548.html)\n\n\n## License\n\nGPL Version 2. Copyright (c) [coffe1891](https://github.com/coffe1891).\n\n## Contact me\n\n* Email: kai521@gmail.com\n* Webchat: kenny2019\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoffe1891%2Fvideojs-flvh265","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoffe1891%2Fvideojs-flvh265","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoffe1891%2Fvideojs-flvh265/lists"}