Skip to main content
Inspiring
November 10, 2022
Question

movie player not displaying pause on autoplay

  • November 10, 2022
  • 1 reply
  • 523 views

a minor glitch--

 

If you select any movie on this page https://toddheymandirector.com/reel/

 

the movie automatically (correctly) begins playing.. however the play icon continues to be displayed. It should be the pause icon since it is playing. If you click on the play icon,  the play icon stays, which is correct because youve paused it. if you click it again and begins plays and finally displays the pause icon which is correct because its playing.

 

how do i get it to display the pause icon when the page loads and it is playing? a pseudo class for the onload state?

 

here is the css for the player from the player stylesheet https://toddheymandirector.com/css/video-js3.css

* Play/Pause
--------------------------------------------------------------------------------
*/
.vjs-default-skin .vjs-play-control {
width: 25px;
cursor: pointer;
color: #d38d48;
}
.vjs-default-skin .vjs-play-control:before {
content: "\i";
margin-top:8px;
}
.vjs-default-skin.vjs-playing .vjs-play-control:before {
content: "\g";
font-size: 25px;
margin-top:8px;

}

    This topic has been closed for replies.

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    November 10, 2022

    CSS makes things look pretty.  JavaScript makes them function. 

     

    I assume you're using Video.js?  Please refer to your player's documentation:

    https://docs.videojs.com/

     

    Nancy O'Shea— Product User & Community Expert
    REELHEROAuthor
    Inspiring
    November 10, 2022

    i did look there Nancy - i can only find the documentation on autoplay not the button that gets displayed when it begins playing..  i feel like its a glitch not a choice..no?

    Nancy OShea
    Community Expert
    Community Expert
    November 10, 2022

    To be honest, I've never used it and have no idea what it supports.

    You might reach out to the developers and ask them.

     

    Nancy O'Shea— Product User & Community Expert