+ 3

About adding video and audio

Can more than 1 audio or video files can be added in one audio or video tag

9th Mar 2017, 4:13 PM
Haweris Warraich
Haweris Warraich - avatar
2 Antworten
+ 11
Hi Haweris! Yes and no, you can add multiple audio/video files contained within one audio/video tag, using the "source" tag for each file but these are "alternative files", the browser will use the first recognized format, it won't play them all simultaneously. Example: <audio controls> <source src="song1.ogg" type="audio/ogg"> <source src="song2.mp3" type="audio/mpeg"> </audio> See more at: - Audio: https://www.w3schools.com/tags/tag_audio.asp -Video: https://www.w3schools.com/html/html5_video.asp
22nd Apr 2017, 3:14 AM
Pao
Pao - avatar
+ 1
no
9th Mar 2017, 5:14 PM
jhar
jhar - avatar