@kldzj/ytdl-dash
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Generates DASH manifests for YouTube videos using data from ytdl-core.

Installation

Using yarn:

$ yarn add ytdl-core @kldzj/ytdl-dash

Using npm:

$ npm i -S ytdl-core @kldzj/ytdl-dash

Usage

import ytdl from 'ytdl-core';
import { generateDASHFromVideoInfo } from '@kldzj/ytdl-dash';

const video = await ytdl.getInfo('dQw4w9WgXcQ');
const manifest = generateDASHFromVideoInfo(video); // dash-xml string

Options

import ytdl from 'ytdl-core';
import { generateDASHFromVideoInfo } from '@kldzj/ytdl-dash';

const video = await ytdl.getInfo('dQw4w9WgXcQ');
const manifest = generateDASHFromVideoInfo(video, {
  // replace all IPs in the media URLs
  replaceIPs: true,
});

Credits

Thanks to FreeTubeApp for their yt-dash-manifest-generator package.

Readme

Keywords

Package Sidebar

Install

npm i @kldzj/ytdl-dash

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0

Unpacked Size

12.8 kB

Total Files

7

Last publish

Collaborators

  • kldzj