0

Video and Audio files not playing

In my live server with VScode, only the controls for my video and audio file are showing. The content will not display on the live server. I have the audio and video file in my workspace and I will post how my code is formatted. Any solutions are much appreciated. <audio controls> <source src="waterfall.wav" type="audio/wav" /> Your browser does not support the audio tag. </audio> <video width="320" height="240" controls> <source src="clouds.mp4" type="video/mp4" /> Your browser down not support the video tag. </video>

25th Apr 2022, 12:29 AM
Mason Brown
2 Answers
+ 1
You must make sure the path to the file is correct and image/audio/video is available in the location.
25th Apr 2022, 12:54 AM
SoloProg
SoloProg - avatar
0
If you are working in codeplayground, since the playground is hosted in a server it does not have access to your phone storage. So you have to use an external link to your file.
25th Apr 2022, 2:07 AM
Chris Coder
Chris Coder - avatar