Skip to main content
Known Participant
Aug 19, 2020 6:44 AM UTC
Answered

Play bar without the drag/slider option

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 is closed to new replies. Start a new post to keep the conversation going.
    Paul Wilson CTDP
    Paul Wilson CTDPCorrect answer
    Community Expert
    Aug 26, 2020 3:49 AM UTC

    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

    2 replies

    Paul Wilson CTDP
    Community Expert
    Paul Wilson CTDPCommunity ExpertCorrect answer
    Community Expert
    Aug 26, 2020 3:49 AM UTC

    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/

    Translate
    Paul Wilson, CTDP
    singruAuthor
    Known Participant
    Sep 3, 2020 5:08 PM UTC

    Thanks Paul!

    Translate