mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Thu Sep 24 09:14:14 PM CST 2020
This commit is contained in:
parent
b83f8cbf96
commit
6339fdcddd
1 changed files with 17 additions and 9 deletions
|
@ -605,12 +605,11 @@ const hook_video_control = hook => {
|
|||
speed_div.addEventListener('tap', throttle(e => {
|
||||
e.stopImmediatePropagation();
|
||||
clear_content();
|
||||
if(control.div.style != 'none'){
|
||||
|
||||
if(window.playbackRate>=2.0) window.playbackRate=0.5;
|
||||
else if(window.playbackRate<=0.5) window.playbackRate=1.0;
|
||||
else window.playbackRate=2.0;
|
||||
}else
|
||||
window.playbackRate = video.playbackRate;
|
||||
|
||||
const split = window.playbackRate.toString().split('.');
|
||||
control.content_divs[0].innerText = split[0];
|
||||
control.content_divs[1].innerText = '.';
|
||||
|
@ -626,7 +625,16 @@ const hook_video_control = hook => {
|
|||
jump_div.addEventListener('tap', throttle(e => {
|
||||
e.stopImmediatePropagation();
|
||||
clear_content();
|
||||
const time = sec2HHMMSS(video.currentTime);
|
||||
|
||||
if(control.div.style.display === 'none')
|
||||
window.playbackPos = video.currentTime;
|
||||
else {
|
||||
if(!window.playbackPos)
|
||||
window.playbackPos = video.currentTime;
|
||||
window.playbackPos += 180;
|
||||
}
|
||||
|
||||
const time = sec2HHMMSS(window.playbackPos);
|
||||
const split = time.split(':');
|
||||
if (split.length < 3) {
|
||||
split.unshift('00');
|
||||
|
|
Loading…
Reference in a new issue