![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@gary50613/play-dl
Advanced tools
YouTube, SoundCloud, Spotify, Deezer searching and streaming for discord-js bots
A light-weight YouTube, SoundCloud, Spotify and Deezer streaming and searching library.
ytdl-core has some issues with miniget and also stream abort issues. On the other hand, youtube-dl is a perfect alternative but it takes time to launch. Hence, play-dl is created to avoid these issues along with providing comparatively faster performance than others.
You can contact us for support on our chat server.
Node.js 16.0.0 or newer is required.
npm install play-dl@latest
pnpm add play-dl@latest
yarn add play-dl@latest
TypeScript:
import play from 'play-dl'; // Everything
import { video_basic_info, stream } from 'play-dl'; // Individual functions
CommonJS modules:
const play = require('play-dl'); // Everything
// Individual functions by using destructuring
const { video_basic_info, stream } = require('play-dl');
ES6 modules:
import play from 'play-dl'; // Everything
import { video_basic_info, stream } from 'play-dl'; // Individual functions
Because discord-player doesn't work with raw opus packets you need to enable the compatibility mode in play-dl
, if you want to use both frameworks together.
To fix the playback of YouTube videos with discord-player
, you can disable some of play-dl's optimisations and fixes by setting the discordPlayerCompatibility
option for stream
and stream_from_info
to true
The discordPlayerCompatiblity
option might break the playback of long YouTube videos.
Even with the discordPlayerCompatibility
option set you will not be able to use the seek option for stream
and stream_from_info
.
FAQs
YouTube, SoundCloud, Spotify, Deezer searching and streaming for discord-js bots
The npm package @gary50613/play-dl receives a total of 0 weekly downloads. As such, @gary50613/play-dl popularity was classified as not popular.
We found that @gary50613/play-dl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.