mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-23 14:38:07 +00:00
18 lines
623 B
TypeScript
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);
|
|
}
|
|
} |