How to use the ytdl-core/lib/util.fromHumanTime function in ytdl-core

To help you get started, we’ve selected a few ytdl-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TinyMan / node-jeanne / lib / extensions / youtube.js View on Github external
seek(time) {
		if (this.current_video) {
			if (this.player.seekable) {
				time = fromHumanTime(time) / 1000.0
				logger.info("Seeking " + time)
				this.player.seek(time)
			}
			else this.emit("message", "This video is not seekable")
		}
	}
	jumpForward(distance = this.conf.jump_distance) {