{"id":19013341,"url":"https://github.com/z41z/hikvision-plugin-player","last_synced_at":"2025-11-10T18:30:59.806Z","repository":{"id":61791766,"uuid":"555155926","full_name":"z41z/hikvision-plugin-player","owner":"z41z","description":"Hikvision Player By WebControl Plugin","archived":false,"fork":false,"pushed_at":"2022-10-21T05:00:13.000Z","size":1855,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T23:33:59.989Z","etag":null,"topics":["hikvision","javascript","player","webcontrol"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/z41z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-21T03:30:34.000Z","updated_at":"2023-08-29T14:53:55.000Z","dependencies_parsed_at":"2022-10-21T08:45:20.417Z","dependency_job_id":null,"html_url":"https://github.com/z41z/hikvision-plugin-player","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/z41z%2Fhikvision-plugin-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z41z%2Fhikvision-plugin-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z41z%2Fhikvision-plugin-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z41z%2Fhikvision-plugin-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z41z","download_url":"https://codeload.github.com/z41z/hikvision-plugin-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240051357,"owners_count":19740335,"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":["hikvision","javascript","player","webcontrol"],"created_at":"2024-11-08T19:23:27.601Z","updated_at":"2025-11-10T18:30:59.766Z","avatar_url":"https://github.com/z41z.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hikvision-plugin-player\nHikvision Player By WebControl Plugin\n\n\n## Install\n\n``` node\n  npm i hikvision-plugin-player -S\n```\n\n## CDN\n\n``` js\n  \u003cscript src=\"https://unpkg.com/hikvision-plugin-player/dist/index.min.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://unpkg.com/hikvision-plugin-player/dist/jsencrypt.min.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://unpkg.com/hikvision-plugin-player/dist/jsWebControl-1.0.0.min.js\"\u003e\u003c/script\u003e\n```\n\n### Usage\n``` html\n  // 必须引用基础库\n  // \u003cscript src=\"https://unpkg.com/hikvision-plugin-player/dist/jsencrypt.min.js\"\u003e\u003c/script\u003e\n  // \u003cscript src=\"https://unpkg.com/hikvision-plugin-player/dist/jsWebControl-1.0.0.min.js\"\u003e\u003c/script\u003e\n  \u003ctemplate\u003e\n    \u003cdiv id=\"player\"\u003e\u003c/div\u003e\n  \u003c/template\u003e\n  \u003cscript\u003e\n  import HikvisionPlugin from 'hikvision-plugin-player'\n  export default {\n    data() {\n      return {\n      }\n    },\n    mounted() {\n    },\n    methods: {\n      async init() {\n        let player = await new HikvisionPlugin.Player({\n          el: 'player',\n          width: 800,\n          height: 600,\n          layout: '1x1',\n          host: 'ISC Host',\n          port: 443,\n          secret: 'ISC Secret',\n          appkey: 'ISC Appkey',\n          isShowToolbar: false\n        }).init()\n        // player = {\n        //   isSuccess: Boolean,\n        //   instance: {\n        //     config: Object,\n        //     webControl: WebControl\n        //   },\n        //   msg: String\n        // }\n        this.player = player.instance\n      }\n    },\n    components: {\n    },\n  }\n  \u003c/script\u003e\n  \u003cstyle lang=\"less\" scoped\u003e\n  #player {\n    width: 800px;\n    height: 600px;\n  }\n  \u003c/style\u003e\n  \n```\n### Function\n  - #### 初始化\n    ``` js\n      this.player.init()\n    ```\n  - #### 根据sn播放\n    ``` js\n      this.player.play(sn, winId = -1)\n    ```\n  - #### 调整窗口大小\n    ``` js\n      this.player.resize()\n    ```\n  - #### 销毁\n    ``` js\n      this.player.destroy()\n    ```\n\n### 海康Web插件开发指南\n  - [海康Web插件开发指南](https://unpkg.com/hikvision-plugin-player/dist/视频WEB插件V1.5.2开发指南.pdf)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz41z%2Fhikvision-plugin-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz41z%2Fhikvision-plugin-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz41z%2Fhikvision-plugin-player/lists"}