videogular2
videogular2 copied to clipboard
Dynamic Change Video Src in Angular 7 not Working
Description
Hi, I am trying to integrate videogular2 in one of my web application but when i change a video src dynamicly the video src not changed but every thing is ok
Expected Behavior
i use data biniding so i expect the player show new video
Actual Behavior
but when the video src is change Videogular play the previous
Player Code
<video [vgMedia]="media" #media id="demoVideoPlayer" preload="auto" playsinline webkit-playsinline>
<source [src]="sanitize( VideoSrc )" type="video/mp4">
</video>
As for me there is no need in sanitize
Description
Hi, I am trying to integrate videogular2 in one of my web application but when i change a video src dynamicly the video src not changed but every thing is ok
Expected Behavior
i use data biniding so i expect the player show new video
Actual Behavior
but when the video src is change Videogular play the previous
Player Code
<video [vgMedia]="media" #media id="demoVideoPlayer" preload="auto" playsinline webkit-playsinline> <source [src]="sanitize( VideoSrc )" type="video/mp4"> </video>
Same Problem occur with me .
Same Problem occur with me .
https://github.com/videogular/videogular2-showroom/blob/master/src/app/smart-playlist/smart-playlist.component.html this may be helpful
@lovechuck Thanks! It worked for me