Skip to content

Commit

Permalink
Merge pull request #31 from invyu/videojs-controls
Browse files Browse the repository at this point in the history
videojs-controls, based on user selection
  • Loading branch information
mustafaboleken authored Oct 31, 2024
2 parents b133504 + ce25dc8 commit b2f1390
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/web_player.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ export class WebPlayer {
*/
mute = false;


/**
* controls: Toggles the visibility of player controls.
*/
controls = true;

/**
* Force the Player to play with audio Auto Play might not work.
*/
Expand Down Expand Up @@ -639,7 +645,7 @@ export class WebPlayer {
limitRenditionByPlayerDimensions: false
}
},
controls: true,
controls: this.controls,
class: 'video-js vjs-default-skin vjs-big-play-centered',
muted: this.mute,
preload: "auto",
Expand Down

0 comments on commit b2f1390

Please sign in to comment.