{"id":19640089,"url":"https://github.com/chimeejs/chimee-flv2fmp4","last_synced_at":"2025-04-28T11:31:02.384Z","repository":{"id":57197958,"uuid":"96195585","full_name":"Chimeejs/chimee-flv2fmp4","owner":"Chimeejs","description":"核心flv解码器","archived":false,"fork":false,"pushed_at":"2018-11-07T14:52:18.000Z","size":367,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T15:02:55.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Chimeejs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-04T08:39:28.000Z","updated_at":"2020-07-29T02:44:08.000Z","dependencies_parsed_at":"2022-09-16T13:12:28.346Z","dependency_job_id":null,"html_url":"https://github.com/Chimeejs/chimee-flv2fmp4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-flv2fmp4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-flv2fmp4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-flv2fmp4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-flv2fmp4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chimeejs","download_url":"https://codeload.github.com/Chimeejs/chimee-flv2fmp4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251304764,"owners_count":21567933,"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":[],"created_at":"2024-11-11T14:04:37.441Z","updated_at":"2025-04-28T11:30:59.692Z","avatar_url":"https://github.com/Chimeejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![icon](http://gao111.top/icon/giticon.png)\n\n```\nnpm install chimee-flv2fmp4 -S\n\nvar cpu= require(\"chimee-flv2fmp4\")\n\nnew cpu();\n```\n-----------------\n# Doc\n## function\n* setflv(arraybuffer) 参数,arraybuffer数组,返回值是该数值用到的位置\n* onInitSegment(fun)  参数,回调function, mp4初始化数据调用该方法,类型为uint8array\n* onMediaSegment(fun) 参数,回调function,mp4后续数据包会回调方法,类型为uint8array\n* onMediaInfo(fun)    参数,回调function,MP4获取metadata后会回调该方法,类型为object\n* seekCallBack(fun)   参数,回调function,跳转触发后,可进行跳转时回调\n* seek(time)          参数,时间,单位是秒,进行跳转\n* on(type,function)   参数,事件名,回调function,事件监听\n\n## event\n* error 核心出现问题时会向外派发这个事件\n\t","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimeejs%2Fchimee-flv2fmp4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchimeejs%2Fchimee-flv2fmp4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimeejs%2Fchimee-flv2fmp4/lists"}