-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
95 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# [niconicomments](https://xpadev.net/niconicomments/) | ||
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/xpadev-net/niconicomments/blob/master/LICENSE) | ||
|
||
[[日本語](https://github.com/xpadev-net/niconicomments/blob/develop/README.md)] | ||
|
||
Comment rendering library that is somewhat compatible with the official Nico Nico Douga player | ||
Reference: https://xpadev-net.github.io/niconicomments/ | ||
Github: https://github.com/xpadev-net/niconicomments | ||
npm: https://www.npmjs.com/package/@xpadev-net/niconicomments | ||
|
||
## For users who use this library for domestic use in Japan | ||
This library may infringe on Dwango's patents depending on how it is used | ||
Please carefully review the following applicable patents and case law before using this library with caution. | ||
[JP,2006-333851](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-2006-333851/7294651F33633E1EBF3DEC66FAE0ECAD878D19E1829C378FC81D26BBD0A4263B/10/en) | ||
[JP,2010-267283](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-4734471/9085C128B7ED7D57F6C2F09D9BE4FCB496E638331DB9EC7ADE1E3A44999A3878/15/en) | ||
[JP,2018-202475](https://www.j-platpat.inpit.go.jp/c1800/PU/JP-6526304/D8AF77CFB92D96C785FEECBD690C53E2F9023F1739E7A5BBDAB588E2ECAC5316/15/en) | ||
[2018: Case No. Heisei 28 (wa) 38565, Patent Infringement Injunction, etc. Patent Right Civil Litigation](https://www.courts.go.jp/app/files/hanrei_jp/073/088073_hanrei.pdf) | ||
[2022: Heisei 30 (ne) 10077 Appeal for Patent Infringement Injunction, etc. Patent Right Civil Litigation](https://www.courts.go.jp/app/files/hanrei_jp/418/091418_hanrei.pdf) | ||
|
||
## Installation | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script> | ||
``` | ||
or | ||
``` | ||
npm i @xpadev-net/niconicomments | ||
``` | ||
|
||
## Examples | ||
```javascript | ||
const canvas = document.getElementById("canvas"); | ||
const video = document.getElementById("video"); | ||
const req = await fetch("sample.json"); | ||
const res = await req.json(); | ||
const niconiComments = new NiconiComments(canvas, res); | ||
//If video.ontimeupdate is used, the comments will be choppy due to the small number of calls. | ||
setInterval(() => niconiComments.drawCanvas(Math.floor(video.currentTime * 100)), 10); | ||
``` | ||
|
||
## Sample | ||
[Sample](https://xpadev-net.github.io/niconicomments/sample/) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters