• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Bug Weird behavior with "audio.seek"

Status
Not open for further replies.

Pringus

Member
Operating System: Windows
SinusBot Version: 0.9.21-217b2fe
TS3 Version: 3.0.18.2

Problem Description
Using the "audio.seek" method doesn't work. The seek bar on the webUI shows the correct time, but after seeking to a different point, the audio starts again from the beginning.


Here's the current code I'm using. You can test the behavior by typing in ".seek" and the bot will restart the video, rather than skipping ahead to the correct point.

I've also tested this with sound files stored locally on my PC, and it resulted in the same behavior. Rather than playing the file from the correct time, it restarts the clip and plays it from the beginning.

Code:
  event.on('chat', function (ev) {
  if (cmdTxt === ".seek") {
  audio.seek(120);
  }
}
 
Status
Not open for further replies.
Top