{"id":23715510,"url":"https://github.com/orzhtml/danmu","last_synced_at":"2025-10-09T07:11:14.258Z","repository":{"id":30874004,"uuid":"34431652","full_name":"orzhtml/danmu","owner":"orzhtml","description":"danmu","archived":false,"fork":false,"pushed_at":"2015-04-23T03:40:23.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T12:48:32.104Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orzhtml.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":"2015-04-23T03:32:57.000Z","updated_at":"2015-04-23T03:40:24.000Z","dependencies_parsed_at":"2022-09-06T23:52:17.945Z","dependency_job_id":null,"html_url":"https://github.com/orzhtml/danmu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orzhtml/danmu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Fdanmu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Fdanmu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Fdanmu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Fdanmu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orzhtml","download_url":"https://codeload.github.com/orzhtml/danmu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orzhtml%2Fdanmu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000982,"owners_count":26082971,"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-10-09T02:00:07.460Z","response_time":59,"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-12-30T20:56:43.075Z","updated_at":"2025-10-09T07:11:14.237Z","avatar_url":"https://github.com/orzhtml.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meteor-danmu\na barrage of video for meteor (meteor的一个弹幕视频插件)  \nthis package has exsit on the [meteor atmosphere](https://atmospherejs.com/jquick/video-danmu)\n#### Add to your project\n    meteor add jquick:video-danmu  \n  \n#### The demo\na barrage video named [danketv](http://www.danketv.com), you can check some video to see the effect.  \nThis site address: [www.danketv.com](http://www.danketv.com)\n\n#### Simple API (how tu use it)\n    ( More detail you can see the jquery.danmu.js which exsit on this package, it is pretty simple )  \n##### 1. add a div to your page  \n        \u003cdiv id=\"danmu\"\u003e\u003c/div\u003e\n##### 2. init barrage plugin  \n\u003cpre\u003e  \n\u003cstrong\u003eYou may needn't init plugin with this api, cause plugin has some default parameters inside.\u003c/strong\u003e    \n\u003cstrong\u003eThis api will customize your barrage as you want.\u003c/strong\u003e\n\u003ccode\u003e$(\"#player-container\").danmu({ //\"player-container\" is the id of barrage playing area  \nleft: 0, // offset of the left border  \ntop: 0 , // offset of the right borde\nheight: 450, // height of barrage playing area\nwidth: player_width, // width of barrage playing area  \nzindex :500, //div zindex  \nspeed:5000, // speed of barrage element, millisecond\nsumtime:65535, // total time of the barrage playing\ndanmuss:{}, // objects of the barrage, major content of barrage playing\ndefault_font_color:\"#FFFFFF\", // font color\nfont_size_small:24, // small barrage font size\nfont_size_big:28, // big barrage font size   \nopacity:\"0.7\", //o pacity   \ntop_botton_danmu_time:4000    \n});  \u003c/code\u003e\u003c/pre\u003e\n##### 3. add barrage content(object) \n\u003cpre\u003e\u003ccode\u003e\nvar theTime = $('#danmu').data('nowtime') + 5;\n$('#player-container').danmu(\"add_danmu\",{\"text\":\"test danmu\" , \"color\":\"white\", \"size\":\"1\",\"position\":\"0\",\"time\":theTime ,\"isnew\":\" \"});  \n//\u003cstrong\u003eI assign the time to the variable \"theTime\", this example will send the barrage content after 5 seconds.\u003c/strong\u003e\n\u003c/code\u003e\u003c/pre\u003e\n##### 4. start barrage playing \n\u003cpre\u003e\u003ccode\u003e$('#player-container').danmu('danmu_start'); \u003c/code\u003e\u003c/pre\u003e\n##### 5. stop barrage playing \n\u003cpre\u003e\u003ccode\u003e$('#player-container').danmu('danmu_stop'); \u003c/code\u003e\u003c/pre\u003e\n##### 6. pause barrage playing \n\u003cpre\u003e\u003ccode\u003e$('#player-container').danmu('danmu_stop'); \u003c/code\u003e\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forzhtml%2Fdanmu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forzhtml%2Fdanmu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forzhtml%2Fdanmu/lists"}