Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Feature Request: Hide Controls #11

Closed
RacerDelux opened this issue Jan 28, 2019 · 1 comment
Closed

Feature Request: Hide Controls #11

RacerDelux opened this issue Jan 28, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@RacerDelux
Copy link

It would be very useful if there was an option to hide the controls. On the standard HTML video tag, just not including the controls attribute would remove them.

@nkoehler nkoehler added the enhancement New feature or request label Feb 22, 2019
@nkoehler nkoehler self-assigned this Feb 22, 2019
@nkoehler
Copy link
Owner

Version 2.6.0 has been released which allows you to force the state of the overlay/controls, instead of using the default behaviour.

You can disable the overlay/controls as follows. You can bind this to a boolean variable to dynamically alter the behaviour.

<mat-video src="/assets/video.mp4" [overlay]="false">

Options:

  • [overlay]="null" - default behaviour
  • [overlay]="false" - always hide the overlay
  • [overlay]="true" - always show the overlay

Not including the overlay attribute falls back on the default behaviour.

The documentation and sample have both been updated to reflect this change.

Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants