Files
YouTube.js/src/parser/classes/DecoratedPlayerBar.ts

18 lines
623 B
TypeScript

import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
import { Parser } from '../index.js';
import Button from './Button.js';
import MultiMarkersPlayerBar from './MultiMarkersPlayerBar.js';
export default class DecoratedPlayerBar extends YTNode {
static type = 'DecoratedPlayerBar';
player_bar: MultiMarkersPlayerBar | null;
player_bar_action_button: Button | null;
constructor(data: RawNode) {
super();
this.player_bar = Parser.parseItem(data.playerBar, MultiMarkersPlayerBar);
this.player_bar_action_button = Parser.parseItem(data.playerBarActionButton, Button);
}
}