nkoehler / mat-video

:tv: mat-video is an Angular 8/9+ video player using Material!
https://nkoehler.github.io/mat-video/
MIT License
91 stars 47 forks source link

Feature Request: Hide Controls #11

Closed RacerDelux closed 5 years ago

RacerDelux commented 5 years ago

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 commented 5 years ago

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:

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

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

Closing.