Controlling various loops in the same video with javascript -


i have composition keyboard events control position of video playback. position 1 , 4 video portion reproduced in loop until there keyboard event.

here javascript using:

      function(__number position, __boolean reset) main(__number inputnumber[8], __number duration) {      var result = new object();      var slice = duration / 8;        if (inputnumber[0] > 0) {          result.position = slice * 1 - slice + 1;          result.reset = true;      } else        if (inputnumber[1] > 0) {          result.position = slice * 2 - slice;          result.reset = true;      } else        if (inputnumber[2] > 0) {          result.position = slice * 3 - slice;          result.reset = true;      } else        if (inputnumber[3] > 0) {          result.position = slice * 4 - slice;          result.reset = true;      } else        if (inputnumber[4] > 0) {          result.position = slice * 5 - slice;          result.reset = true;      }  }


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -