UNPKG

@np-dev/youtubei-js

Version:

A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).

31 lines 967 B
import Text from './misc/Text.js'; import { YTNode } from '../helpers.js'; class ChannelVideoPlayer extends YTNode { constructor(data) { super(); this.id = data.videoId; this.title = new Text(data.title); this.description = new Text(data.description); this.view_count = new Text(data.viewCountText); this.published_time = new Text(data.publishedTimeText); } /** * @deprecated * This will be removed in a future release. * Please use {@link ChannelVideoPlayer.view_count} instead. */ get views() { return this.view_count; } /** * @deprecated * This will be removed in a future release. * Please use {@link ChannelVideoPlayer.published_time} instead. */ get published() { return this.published_time; } } ChannelVideoPlayer.type = 'ChannelVideoPlayer'; export default ChannelVideoPlayer; //# sourceMappingURL=ChannelVideoPlayer.js.map