MegaPlay
The MegaPlayProvider is a universal resolver that connects to megaplay.buzz. Unlike other providers that scrape specific anime sites, MegaPlay uses AniList GraphQL for search and resolves streams using official AniList IDs.
import { HttpClient, MegaPlayProvider } from 'anime-sdk';
const http = new HttpClient();const provider = new MegaPlayProvider(http);
// Searches using AniList GraphQLconst results = await provider.search('Naruto');const units = await provider.fetchContentUnits(results[0].id);
// Resolves using MegaPlay's direct AniList mappingconst stream = await provider.resolveStream(units[0].id, 'sub');Characteristics
Section titled “Characteristics”| Feature | Details |
|---|---|
| Catalog | Anime (AniList) |
| Languages | sub, dub |
| Subtitles | yes (Integrated in HLS) |
| Method | AniList GraphQL + ID Mapping |
| HLS | Single quality with VTT tracks |
Configuration
Section titled “Configuration”You can override the base URL if the host moves to a new domain:
const provider = new MegaPlayProvider(http, { baseUrl: 'https://megaplay.buzz',});