Adding Audio and Video files
Hi.
I have to do a project where i have upload a song in both mp3 and mp4. But when i tried to add the html code, css file and both the sudio and video files in one directory, it did not work. Please help me on how i can add the files
4 Answers
5 months ago by Zaheen Chougale
Try using different names of the files and use the following method:
<audio controls>
<source src="song.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
<video controls width="600">
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
3 months ago by Ahmad Sohaib Qasim
Same problem i am facing, how to use audio and video on onecompiler, image you can upload and use the url, where to save audio and video, even when youtube video is required, that is also a problem.
2 months ago by Anika Walia