{"id":13671759,"url":"https://github.com/IceEnd/ice-video","last_synced_at":"2025-04-27T18:31:39.016Z","repository":{"id":57270776,"uuid":"81162278","full_name":"IceEnd/ice-video","owner":"IceEnd","description":":clapper:Wonderful Html5 danmuku video player,using React library.","archived":false,"fork":false,"pushed_at":"2017-11-03T09:17:33.000Z","size":1260,"stargazers_count":67,"open_issues_count":1,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-15T14:51:08.423Z","etag":null,"topics":["danmuku","danmuplayer","react","video-player"],"latest_commit_sha":null,"homepage":"http://ice-video.coolecho.net/","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/IceEnd.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":"2017-02-07T03:29:43.000Z","updated_at":"2024-04-15T07:50:37.000Z","dependencies_parsed_at":"2022-09-10T01:31:46.146Z","dependency_job_id":null,"html_url":"https://github.com/IceEnd/ice-video","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/IceEnd%2Fice-video","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IceEnd%2Fice-video/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IceEnd%2Fice-video/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IceEnd%2Fice-video/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IceEnd","download_url":"https://codeload.github.com/IceEnd/ice-video/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187264,"owners_count":21549612,"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":["danmuku","danmuplayer","react","video-player"],"created_at":"2024-08-02T09:01:17.927Z","updated_at":"2025-04-27T18:31:38.194Z","avatar_url":"https://github.com/IceEnd.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ice-video\n\nThe web danmuku video player built from the ground up for an HTML5 world using React library.\n\n[![npm](https://img.shields.io/badge/npm-v0.1.6-brightgreen.svg)](https://www.npmjs.com/package/ice-video)\n![build](https://img.shields.io/badge/build-passing-green.svg)\n[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/IceEnd/icePlayer/blob/master/LICENSE)\n\n[website](http://ice-video.coolecho.net)\n\n# ScreenShot\n![ScreenShot](./screenShot.jpeg)\n\n# Installation\n\nInstall ice-video via NPM\n\n```shell\nnpm install --save ice-video react react-dom isomorphic-fetch\n```\n\nimport stylesheet\n\n```javascript\nimport \"http://ice-video.coolecho.net/static/video.min.css\";\n```\n\nor import scss\n\n```javascript\nimport \"node_modules/ice-video/src/assets/sass/video.scss\"\n```\n\n\nImport the components where you need, example:\n\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport IceVideo from 'ice-video';\n\nconst Player = () =\u003e {\n  const settings = {\n    loop: true,\n    autoPlay: false,\n    preload: 'auto',\n    poster: '',\n    volume: 0.5,\n    getDanmukuUrl: 'http://127.0.0.1:3001/danmuku',\n    sendDanmukuUrl: 'http://127.0.0.1:3001/senddanmu',\n    controls: true,\n    scale: '16:9',\n    src: './video.mp4',\n  };\n  return (\n    \u003cIceVideo {...settings} /\u003e\n  );\n}\n\nexport default Player;\n\n```\n\n# Config\n\n## Options\n\n|field|type|default|note|\n|-----|----|-------|----|\n|autoPlay|boolean|false|whether to automatically play|\n|preload|string|'auto'||\n|poster|string|''||\n|loop|boolean|false|loop for video|\n|volume|number|0.8|palyer's volume|\n|controls|boolean|true|control player|\n|scale|string|'16:9'|scale of player|\n|duration|number|6000|danmuku display duration，unit ```ms```|\n|opacity|number|1|the transparency of danmuku|\n\n## Danmuku\n\nServer danmuku format conventions\n\n|field|type|note|\n|-----|----|----|\n|content|string|the content of a danmuku|\n|date|Date|the time when send a danmuku|\n|fontColor|string|color of danmuku|\n|fontSize|string|fontSize of danmuku: ```'middle'``` , ```'small'``` , ```'large'``` |\n|model|string|model of danmuku:  ```'roll'``` , ```'top'``` , ```'buttom'``` |\n|timepoint|number|video playback position|\n\nfor example:\n\n```javascript\n{\n  content: \"233\",\n  date: \"2017-06-03T05:40:26.616Z\",\n  fontColor: \"white\",\n  fontSize: \"middle\",\n  model: \"roll\",\n  timePoint: 3.014076\n}\n```\n\n# LICENSE\n\n[MIT @ Alchemy](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIceEnd%2Fice-video","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIceEnd%2Fice-video","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIceEnd%2Fice-video/lists"}