UNPKG

@np-dev/youtubei-js

Version:

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

15 lines 510 B
import { YTNode } from '../helpers.js'; import { Text } from '../misc.js'; class TranscriptSegment extends YTNode { constructor(data) { super(); this.start_ms = data.startMs; this.end_ms = data.endMs; this.snippet = new Text(data.snippet); this.start_time_text = new Text(data.startTimeText); this.target_id = data.targetId; } } TranscriptSegment.type = 'TranscriptSegment'; export default TranscriptSegment; //# sourceMappingURL=TranscriptSegment.js.map