Forum Discussion

RaviPrakash's avatar
RaviPrakash
Community Member
2 years ago

Default Play Pause Button Hiding Using the JavaScript.

Hi There., I've been trying to hide the default Play/Pause Button Using the JavaScript., it seems that it's disabling after the course starts. Is there any ideas please comment here below for our Reference. please provide a solution ASAP. Thank You.

document.getElementById('play-pause').style.visibility = "none";

 

  • >Modern Player, in the main navigation

    you can enable/disable the play/pause button in the player properties

     

  • Nedim's avatar
    Nedim
    Community Member

    Ravi,

    For a permanent solution on the project level, use Jürgen's solution above. To hide this button on a single slide, Execute JavaScript when the timeline starts:
    document.getElementById('play-pause').style.display = "none";

  • Make sure your Javascript trigger is the FIRST on the trigger list, and consider having the start slide NOT be a video slide, so the trigger can execute before the video slide (with the play button) loads. 

    • RaviPrakash's avatar
      RaviPrakash
      Community Member

      I've provided at the beginning., but it's still popping up  at the beginning  for a few seconds.

  • which player are you using ?

    • classic player
    • modern player

    which play/pause button you want to hide ?

    • in video navigation bar
    • in main navigation