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.
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);
}
}