ns.seek(Math.floor(loader.scrub._x/336.6) * duration);
I don't normally deal with video matters so I may be totally off with this, but if the value of loader.scrub._x is less than 336.6 then the Math.floor value will be 0, which will result in ns.seek(0);
What you might intend is...
ns.seek(Math.floor(loader.scrub._x/336.6 * duration));
Thank you so much! Solved the problem 100% Thank you!
I am also having some issue with the scrubber of player that i implemented. Can i know how you solved the issue of scrubber. It will be very helpful if you answered.
Thanks and Regards,