feat: add support for chapters & video heatmap (#263)

* feat: add support for chapters & video heatmap

* chore: add tests
This commit is contained in:
LuanRT
2022-12-27 04:17:05 -03:00
committed by GitHub
parent 2b3642ba63
commit 6a4b4f3359
9 changed files with 183 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
import Parser from '..';
import { YTNode } from '../helpers';
import type Button from './Button';
import type MultiMarkersPlayerBar from './MultiMarkersPlayerBar';
class DecoratedPlayerBar extends YTNode {
static type = 'DecoratedPlayerBar';
player_bar: MultiMarkersPlayerBar | null;
player_bar_action_button: Button | null;
constructor(data: any) {
super();
this.player_bar = Parser.parseItem<MultiMarkersPlayerBar>(data.playerBar);
this.player_bar_action_button = Parser.parseItem<Button>(data.playerBarActionButton);
}
}
export default DecoratedPlayerBar;