I want to play a video file in my browser.
I Am using html video
attribute for that.
Below is my html code
<video controls controlsList="nodownload" (click)="toggleVideo()" #videoPlayer width="40%" height="40%">
<source [src]="videoSource" type="video/mp4" />
Browser not supported
</video>
and ts code :
toggleVideo(event: any) {
this.videoplayer.nativeElement.play();}
If I specify the path in videosource
as my local machine (eg : D:/Videos/video.mp4) then it does not allow to load the file(Local resource cannot be loaded error)
Currently the video is playing when it is the assets folder, but my system uploads files to a server and I have to access it from there. How can I provide the path for it.
I am using tomcat server for backend.