mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 02:52:12 +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
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
import Text from './misc/Text';
|
|
import Thumbnail from './misc/Thumbnail';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class BrowserMediaSession extends YTNode {
|
|
static type = 'BrowserMediaSession';
|
|
|
|
album;
|
|
thumbnails;
|
|
|
|
constructor (data: any) {
|
|
super();
|
|
this.album = new Text(data.album);
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnailDetails);
|
|
}
|
|
}
|
|
|
|
export default BrowserMediaSession; |