Closed Al-Sharif closed 4 years ago
There is no way to detect the changes inside the same object passed as input. If you want to reinitialize everything you need to pass another array instead of pushing to the same one. This is not the specifics of this library; this is how angular works
The player should re-initialized or somehow be able to read the new video sources. my scenario is:
How I fixed this issue?
this.videoSources.push({ src: event.body, size: 1440, type: this.selectedFile.file.type }); this.plyr.player.source = { sources: this.videoSources, type: 'video' } this.plyr.player.play();
but i assume its should be re-initialized automatically if
this.videoSources
has changed.