* VRFS-3211 - seek feature updated to be more responsive
This commit is contained in:
parent
2723cd8a78
commit
9edc291ced
|
|
@ -101,10 +101,10 @@
|
|||
function startDrag(e, ui) {
|
||||
dragging = true;
|
||||
playingWhenDragStart = playbackPlaying;
|
||||
draggingUpdateTimer = setInterval(function() { canUpdateBackend = true; }, 333); // only call backend up to 3 times a second while dragging
|
||||
if(playingWhenDragStart) {
|
||||
stopPlay();
|
||||
}
|
||||
//draggingUpdateTimer = setInterval(function() { canUpdateBackend = true; }, 333); // only call backend up to 3 times a second while dragging
|
||||
//if(playingWhenDragStart) {
|
||||
//stopPlay();
|
||||
//}
|
||||
}
|
||||
|
||||
function stopDrag(e, ui) {
|
||||
|
|
|
|||
|
|
@ -3088,7 +3088,11 @@
|
|||
logger.debug("calling jamClient.SessionTrackSeekMs(" + seek + ")");
|
||||
|
||||
if(data.playbackMonitorMode == context.JK.PLAYBACK_MONITOR_MODE.JAMTRACK) {
|
||||
// this doesn't ever show anything, because of blocking nature of the seek call
|
||||
//var $mediaSeeking = $screen.find('.media-seeking')
|
||||
//$mediaSeeking.attr('data-mode', 'SEEKING')
|
||||
context.jamClient.SessionJamTrackSeekMs(seek);
|
||||
//$mediaSeeking.attr('data-mode', '')
|
||||
}
|
||||
else {
|
||||
context.jamClient.SessionTrackSeekMs(seek);
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
top:3px ! important;
|
||||
}
|
||||
|
||||
.jam-track-get-ready {
|
||||
.jam-track-get-ready, .media-seeking {
|
||||
display:none;
|
||||
position:absolute;
|
||||
top:-29px;
|
||||
|
|
@ -96,11 +96,6 @@
|
|||
line-height:32px;
|
||||
left:50%;
|
||||
|
||||
&[data-mode="JAMTRACK"] {
|
||||
&[data-current-time="0"] {
|
||||
display:block;
|
||||
}
|
||||
}
|
||||
.spinner-small {
|
||||
vertical-align:middle;
|
||||
display:inline-block;
|
||||
|
|
@ -110,6 +105,14 @@
|
|||
vertical-align:middle;
|
||||
}
|
||||
}
|
||||
|
||||
.jam-track-get-ready[data-mode="JAMTRACK"][data-current-time="0"] {
|
||||
display:block;
|
||||
}
|
||||
|
||||
.media-seeking[data-mode="SEEKING"] {
|
||||
display:block;
|
||||
}
|
||||
}
|
||||
|
||||
.playback-mode-buttons {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@
|
|||
<div class="spinner-small"></div>
|
||||
<span>Get Ready!</span>
|
||||
</div>
|
||||
<div class="media-seeking">
|
||||
<div class="spinner-small"></div>
|
||||
<span>Seeking to this Location</span>
|
||||
</div>
|
||||
<!-- play button -->
|
||||
<div class="left play-buttons">
|
||||
<a class="play-button" href="#">
|
||||
|
|
|
|||
Loading…
Reference in New Issue