[日本語]
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
<script src="https://cdn.jsdelivr.net/npm/@xpadev-net/niconicomments@latest/dist/bundle.min.js"></script>
or
npm i @xpadev-net/niconicomments
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(video.currentTime * 100),
10
);
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
JP,2010-267283
JP,2018-202475
2018: Case No. Heisei 28 (wa) 38565, Patent Infringement Injunction, etc. Patent Right Civil Litigation
2022: Heisei 30 (ne) 10077 Appeal for Patent Infringement Injunction, etc. Patent Right Civil Litigation