videogular / videogular2

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

Problem updating the source video url #921

Closed capitanduke closed 2 years ago

capitanduke commented 2 years ago

I have an array of videos urls, and I'm trying to change the source url video from a clickable list, but is imposibel. I can see in the html elemnts source that the url changed but it doesn't reflect it in the player and keep playing the first video only.

HTML:

<ng-container *ngFor="let trailer of gameTrailer.results; let i=index"> <div class="carousel" (click)="getIndexTrailer(i)"> {{ trailer.name }}

TS: getIndexTrailer(i: number): void{ this.indexTrailer = i; }

Elecash commented 2 years ago

This is deprecated, use this lib: https://github.com/videogular/ngx-videogular