j-holub / Node-MPV

A NodeJs Module for MPV Player
https://www.npmjs.com/package/node-mpv
MIT License
117 stars 73 forks source link

added goto function #70

Closed twilson90 closed 4 years ago

j-holub commented 4 years ago

goto and goToPosition got me confused and upon googleing I found out, that most people call such behevaiour "to jump to a song", so I renamed it jump, I hope you don't mind.

Also if you send the current position with playlist-pos it already restarts the track on the mpv side, so there was no need to manually check for it and call goToPosition(0) :)

Thanks a ton for the contribution