{"id":20144209,"url":"https://github.com/quansitech/qscmf-formitem-qiniu","last_synced_at":"2026-06-07T03:32:55.752Z","repository":{"id":62531969,"uuid":"237020807","full_name":"quansitech/qscmf-formitem-qiniu","owner":"quansitech","description":"七牛音视频组件","archived":false,"fork":false,"pushed_at":"2021-05-03T09:55:43.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-15T07:38:20.266Z","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/quansitech.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":"2020-01-29T15:49:56.000Z","updated_at":"2020-03-31T10:06:29.000Z","dependencies_parsed_at":"2022-11-02T14:32:21.590Z","dependency_job_id":null,"html_url":"https://github.com/quansitech/qscmf-formitem-qiniu","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/quansitech/qscmf-formitem-qiniu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-formitem-qiniu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-formitem-qiniu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-formitem-qiniu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-formitem-qiniu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quansitech","download_url":"https://codeload.github.com/quansitech/qscmf-formitem-qiniu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-formitem-qiniu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27385045,"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","status":"online","status_checked_at":"2025-11-30T02:00:05.582Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T22:09:15.503Z","updated_at":"2025-11-30T09:03:52.477Z","avatar_url":"https://github.com/quansitech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 七牛音视频组件\n\n#### 安装\n\n```php\ncomposer require quansitech/qscmf-formitem-qiniu\n```\n\n#### 如何使用\n\n```php\n$options = [\n    'multiple' =\u003e true, //是否开启多文件上传 默认关闭\n    'type' =\u003e 'bigaudio', //重置upload_type,qiniu_audio 的默认值为audio, qiniu_video的默认值为video\n];\n//如没有特别需求，$options可不传\naddFormItem('audio_id', 'qiniu_audio', '音频文件', '', $options)\n```\n\n设置.env 七牛的ak 和 sk\n```blade\nQINIU_AK=**********\nQINIU_SK=************\n```\n\n修改/app/Common/Conf/config.php，配置上传类型\n```php\n//UPLOAD_TYPE_*** 其中***为对应的type\n'UPLOAD_TYPE_VIDEO' =\u003e array(\n        'mimes'    =\u003e 'video/mp4,video/webm', //允许上传的文件MiMe类型，多个值用逗号分隔\n        'maxSize'  =\u003e 500*1024*1024, //上传的文件大小限制\n        'saveName' =\u003e array('uniqid', ''), //上传文件命名规则，[0]-函数名，[1]-参数，\u003e多个参数使用数组\n        'pfopOps' =\u003e \"avthumb/mp4/ab/160k/ar/44100/acodec/libfaac/r/30/vb/2400k/vcodec/libx264/s/1280x720/autoscale/1/stripmeta/0\", //七牛转码策略\n        'pipeline' =\u003e 'video', //处理管道\n        'bucket' =\u003e 'video', //七牛bucket\n        'domain' =\u003e 'https://***.qscmf.test' //上传至七牛后，访问文件的domain\n)\n```\n\n勾子：qiniu_notify  \n```php\n七牛处理通知执行完后处理的回调，可根据业务需要，自定义该勾子的行为，传递参数为数组，数组包含file_id 和 duration。\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fqscmf-formitem-qiniu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquansitech%2Fqscmf-formitem-qiniu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fqscmf-formitem-qiniu/lists"}