mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
17 lines
495 B
JavaScript
17 lines
495 B
JavaScript
import Parser from '../index';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class PlayerOverlay extends YTNode {
|
|
static type = 'PlayerOverlay';
|
|
|
|
constructor(data) {
|
|
super();
|
|
this.end_screen = Parser.parse(data.endScreen);
|
|
this.autoplay = Parser.parse(data.autoplay);
|
|
this.share_button = Parser.parse(data.shareButton);
|
|
this.add_to_menu = Parser.parse(data.addToMenu);
|
|
this.fullscreen_engagement = Parser.parse(data.fullscreenEngagement);
|
|
}
|
|
}
|
|
|
|
export default PlayerOverlay; |