i have a function in which there is a error coming in a inspect element it is uncaughtReferenceError:Invalid left-hand side assignment & i'm using buzz.js library for sound so the function is:
function clickedbar(e)
{
var mouseX=e.pageX-bar.offsetLeft;
var newtime=mouseX*mysound.getDuration()/240;
mysound.getTime()=newtime;
progressbar.style.width=mouseX+'px';
}
I'm getting error in the 3rd line of that function that is "mysound.getTime()=newtime".How i can solve this line of code,all other lines are working fine,please someone help me out of this.
It looks like Buzz.js library has a setter for this, so instead of:
do:
Based on it's documentation: http://buzz.jaysalvat.com/documentation/sound/