+ 2

why are they using 2 source elements in audio element, when i deleted one, it has worked same as before,so why they code 2 times

19th May 2017, 3:42 PM
DANISH KHAN
DANISH KHAN - avatar
5 Respostas
+ 15
If the first source doesn't work browser will try the other......
19th May 2017, 3:43 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 15
If ogg is not supported it'll try the .mp3 .... ~_~
19th May 2017, 3:48 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
the second source is in case the end user for some reason cannot play that source, it's a backup.
19th May 2017, 3:43 PM
Louis
+ 1
but it will try mp3 1st bcz it's in 1st source element... right?
19th May 2017, 4:40 PM
DANISH KHAN
DANISH KHAN - avatar
0
so why values are change in both... mp3 to ogg and same in other
19th May 2017, 3:46 PM
DANISH KHAN
DANISH KHAN - avatar