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 45 forks source link

this._renderer.addClass is not a function, i can't change the src of the video dynamically because of this error #14

Closed rajatsehgal2010 closed 5 years ago

rajatsehgal2010 commented 5 years ago

ERROR TypeError: this._renderer.addClass is not a function at MatSliderProgressBarComponent.set [as color] (core.es5.js:272) at MatSliderProgressBarComponent.class_1 [as constructor] (core.es5.js:253) at MatSliderProgressBarComponent.MatSlider [as constructor] (slider.es5.js:84) at new MatSliderProgressBarComponent (mat-video.js:331) at createClass (core.es5.js:10922) at createDirectiveInstance (core.es5.js:10751) at createViewNodes (core.es5.js:12192) at callViewAction (core.es5.js:12622) at execComponentViewsAction (core.es5.js:12531) at createViewNodes (core.es5.js:12220)

nkoehler commented 5 years ago

I was able to change the src of the video dynamically via template binding as well as through the API, and did not get this error. Considering it is a renderer error, it is likely this could be an issue unrelated to mat-video itself.

The limited information you provided is not enough for me to fully diagnose the issue. Provide more information if you want this reopened.

Closing.