Skip to content

yoursunny/NDNts-video

Repository files navigation

NDNts Adaptive Video

Demo sites:

NDNts adaptive video is a video player for global NDN network. This project is built with NDNts, Named Data Networking libraries for the modern web. This project demonstrates these NDNts capabilities:

  • Use NDNts in a JavaScript project (instead of TypeScript).
  • fetch function from @ndn/segmented-object. It uses CUBIC congestion control algorithm to retrieve video segments efficiently.

NDNts logo

This project is inspired by iViSA project. Advantages and unique features include:

  • Seamless fallback to YouTube on unsupported browsers.
  • Playback statistics display.
  • Smaller code bundle delivered to browser.

NDNts homepage has blog articles about experiments using this application.

Build instructions:

  1. corepack pnpm install to install dependencies.
  2. Create public/content.json or copy one from content/ directory.
  3. corepack pnpm serve to start development server and visit http://localhost:3333.
  4. corepack pnpm build to compile production site in public/.

Related code:

  • server: encode script and server deployment.
  • pptr: Puppeteer automation.