videogular / videogular2

The HTML5 video player for Angular 2
https://videogular.github.io/videogular2-showroom/#/
MIT License
672 stars 211 forks source link

fix(VgPlaybackButton): Added ChangeDetectorRef and called detectChang… #890

Open vicatcu opened 4 years ago

vicatcu commented 4 years ago

Description

I injected public cdr: ChangeDetectorRef into VgPlaybackButton and called detectChanges as the last action in the updatePlaybackSpeed() method. This fixes #845. I had to make some innocuous changes to some spec files to get it to build because of compile-time errors when running npm run build.