videogular2 icon indicating copy to clipboard operation
videogular2 copied to clipboard

Dynamic Change Video Src in Angular 7 not Working

Open amirzenoozi opened this issue 5 years ago • 5 comments

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>

amirzenoozi avatar Mar 17 '19 07:03 amirzenoozi

As for me there is no need in sanitize

androidovshchik avatar Mar 23 '19 15:03 androidovshchik

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 .

NikitaPooja avatar Apr 18 '19 11:04 NikitaPooja

Same Problem occur with me .

Ruio9244 avatar May 23 '19 11:05 Ruio9244

https://github.com/videogular/videogular2-showroom/blob/master/src/app/smart-playlist/smart-playlist.component.html this may be helpful

lovechuck avatar May 23 '19 12:05 lovechuck

@lovechuck Thanks! It worked for me

jayaike avatar Jan 11 '20 21:01 jayaike