Home > OS >  Remove menu button from Iframe
Remove menu button from Iframe

Time:05-21

How should I do to remove these 2 buttons ? I can't find any properties to set them to false: enter image description here enter image description here

For now this is my code:

      <iframe
        [src]="item1?.downloadURL | safe"
        
        frameborder="0"
        controlsList="nodownload"
        allowfullscreen
      >
      </iframe>

CodePudding user response:

Hide the player controls.

controls parameter type definition:

type ControlName = "play" | "seekBackward" | "seekForward" | "playbackRate" | "volume" | "fullscreen" | "subtitles" | "chapters" | "pictureInPicture" | "progressBar" | "chromecast" | "download" | "more"; If no value is provided for the "controls" parameter, all controls will be hidden.

Note: the only control that can still be visible is the unmute button if the video as started muted. To hide all controls, including this one, use the setChromeless() method

Example:

player.hideControls();

If a list of control names if provided, the associated controls will be hidden.

Example:

    player.showControls();                          // display all controls ...
    player.hideControls(["download", "subtitles"]); // ... except "download" and "subtitles"

heres the link to the article

  • Related