Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { PassThrough } = require('stream')
- /**
- * Start playing item from playlist on {position} from {offset} ms
- */
- function start(position = 0, offset = 0) {
- // console.log(this.queue)
- }
- /**
- * Stop playing current song
- */
- function stop() {
- //
- }
- module.exports = () => {
- const stream = PassThrough({ end: false })
- stream.queue = []
- Object.assign(stream, {
- start,
- stop
- })
- return stream
- }
Advertisement
Add Comment
Please, Sign In to add comment