Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function easy (mediaPlayer, ms) {
- xy = mediaPlayer.mp.getBoundingClientRect();
- t = { x: getMousePos(onmousemove).x, y: getMousePos(onmousemove).y };
- var jog_r = mediaPlayer.mp.duration;
- if (ms.sec != mediaPlayer.mp.currentTime) {
- mediaPlayer.mp.currentTime = parseFloat(new String(ms.sec));
- console.log(mediaPlayer.mp.currentTime);
- }
- console.log(mediaPlayer.mp.currentTime + "*" + ms.sec);
- if (flags == true || (ms.sec < -0.2 || ms.sec > jog_r))
- {
- ms.sec = 0;
- return;
- }
- console.log(mediaPlayer.mp.currentTime + "&" + mediaPlayer.mp.duration);
- flag();
- mediaPlayer.mp.pause();
- while ((callbackRight() && ms.sec < jog_r) || (callbackLeft() && ms.sec > 0))
- {
- if (callbackLeft() && mediaPlayer.mp.currentTime > 0) {
- medp = new String(parseFloat(mediaPlayer.mp.currentTime - 10));
- mediaPlayer.mp.currentTime = (`${medp}`);
- //mediaPlayer.mp.play();
- console.log(mediaPlayer.mp.currentTime);
- }
- else if (callbackRight() && mediaPlayer.mp.currentTime < jog_r) {
- console.log(mediaPlayer.mp.currentTime + " " + mediaPlayer.mp.duration);
- medp = new String(parseFloat(mediaPlayer.mp.currentTime + 10));
- mediaPlayer.mp.currentTime = (`${medp}`);
- //mediaPlayer.mp.play();
- }
- }
- //mediaPlayer.mp.play();
- unflag();
- m_seek = ms;
- return m_seek;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement