@np-dev/youtubei-js
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
16 lines • 716 B
JavaScript
import { YTNode } from '../helpers.js';
import { Parser } from '../index.js';
import NavigationEndpoint from './NavigationEndpoint.js';
class WatchCardHeroVideo extends YTNode {
constructor(data) {
var _a;
super();
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
this.call_to_action_button = Parser.parseItem(data.callToActionButton);
this.hero_image = Parser.parseItem(data.heroImage);
this.label = ((_a = data.lengthText) === null || _a === void 0 ? void 0 : _a.accessibility.accessibilityData.label) || '';
}
}
WatchCardHeroVideo.type = 'WatchCardHeroVideo';
export default WatchCardHeroVideo;
//# sourceMappingURL=WatchCardHeroVideo.js.map