jquery - Javascript ie 9 Seek bar Error -



jquery - Javascript ie 9 Seek bar Error -

i trying update currenttime when user click on seekbar works on chrome firefox on ie9 getting error: dom exception: index_size_err (1).

$('#progress').click(function(e) { var offset = $(this).offset(); var percent_width = (e.clientx - offset.left) / parseint($('#progress').width())*100; var number = percent_width.tofixed(2); var time = parseint(vidplayer.videoobj[0].duration) / 100 * number; console.log(time.tofixed(2)); vidplayer.videoobj[0].currenttime = time.tofixed(2); });

i've changed code.

could setting value of currenttime outside range of video? see calculating percentage of user clicked on bar, not seeing applying percentage length of video. because of this, if video 20 seconds long click on 78% of bar, seek move 78th sec of video, resulting in out-of-range error.

you seek add together following:

var time = vidplayer.videoobj[0].duration / 100 * number;

javascript jquery internet-explorer

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -