Skip to main content
Known Participant
August 19, 2020
Answered

Play bar without the drag/slider option

  • August 19, 2020
  • 1 reply
  • 566 views

I'm working on a project that contains a few videos. The client wants the playbar for the videos, but without the scrubbing option. As there is no such functionality in Captivate 2019, I used a code (given below) that I found online. For the shorter videos, this code is successful in disabling the scrub feature. However for the longer videos, the scrubbing suddenly pops up in the middle of the video.

 

Is there any other way to disable the scrub feature?

 

// hide the slider thumbnail
var thumbEl=document.getElementsByClassName('playbarSliderThumb')[0]
thumbEl.style.display='none'
// disable drag and click slider navigation
if (!cp.playbar.mainMovie._jumpToFrame) {
cp.playbar.mainMovie._jumpToFrame =
cp.playbar.mainMovie.jumpToFrame
cp.playbar.mainMovie.jumpToFrame = function(a) {
var stack = new Error().stack
var callerIsNotPlaybar =
stack.indexOf('HTMLCanvasElement.moveSlider') == -1
&& stack.indexOf('PlayBarSlider.moveSlider') == -1
if (callerIsNotPlaybar)
cp.playbar.mainMovie._jumpToFrame.call(cp.playbar.mainMovie, a)
}
}

    This topic has been closed for replies.
    Correct answer Paul Wilson CTDP

    Check out James Kingsley's presentation from the Adobe eLearning World Conference earlier this year. He demonstrates how you can create a custom progress bar that progresses along with the course using JavaScript. 
    https://elearning.adobe.com/2020/06/javascript-in-elearning-for-beginners-workshop/

    1 reply

    Paul Wilson CTDP
    Community Expert
    Paul Wilson CTDPCommunity ExpertCorrect answer
    Community Expert
    August 26, 2020

    Check out James Kingsley's presentation from the Adobe eLearning World Conference earlier this year. He demonstrates how you can create a custom progress bar that progresses along with the course using JavaScript. 
    https://elearning.adobe.com/2020/06/javascript-in-elearning-for-beginners-workshop/

    Paul Wilson, CTDP
    singruAuthor
    Known Participant
    September 3, 2020

    Thanks Paul!