Forum Discussion

Haseeb's avatar
Haseeb
Community Member
10 months ago
Solved

How to Remove Only Certain Playback Speed Options (e.g., 1.75x and 2x) from the Storyline Player?

Hi everyone, I'm working on a Storyline project and would like to customize the playback speed options in the built-in player. Specifically, I want to remove only the 1.75x and 2x speed options, wh...
  • Seb_Daubert's avatar
    10 months ago

    Hi Haseeb!
    Create a trigger that execute this javascript when slide start:

    const divs = document.querySelectorAll('div[data-speed="2"], div[data-speed="1.75"]');

    // Loop through the found divs to hide their parent li element
    divs.forEach(div => {
        const li = div.closest('li');
        if (li) {
            li.style.display = 'none';
        }
    });

    The speed options (2 and 1.75)  will be hidden.