mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 08:08:54 +00:00
* dev(NavigationEndpoint): add `/player` endpoint * dev: add AudioOnlyPlayability, BrowserMediaSession and MusicDownloadStateBadge * dev: allow endpoints to be overridden * dev: minor parser changes * dev(TrackInfo): add `<info>#getTab(title?)` * dev: allow `Music#getInfo()` to accept list items * dev: revert a few changes, I probably overcomplicated this. * dev: add tests * dev: add `TrackInfo#getUpNext()`, `TrackInfo#getRelated()` and `TrackInfo#getLyrics()` * docs: update API ref * fix(docs): formatting inconsistencies
20 lines
537 B
TypeScript
20 lines
537 B
TypeScript
import Parser from '../index';
|
|
import MusicPlayButton from './MusicPlayButton';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class MusicItemThumbnailOverlay extends YTNode {
|
|
static type = 'MusicItemThumbnailOverlay';
|
|
|
|
content;
|
|
content_position;
|
|
display_style: string;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.content = Parser.parseItem<MusicPlayButton>(data.content, MusicPlayButton);
|
|
this.content_position = data.contentPosition;
|
|
this.display_style = data.displayStyle;
|
|
}
|
|
}
|
|
|
|
export default MusicItemThumbnailOverlay; |