0

Why do html audios and videos fail to play in the browser yet they play in html viewer and wps office?

I use chrome as my default browser but I Don't know where the problem comes from even if I use sololearn.Here is the code (which I wrote using notepad); For audio <audio controls loop autoplay> <source src="file:///storage/emulated/0/download/song.mp3" type="audio/mp3"> <source src="file:///storage/sdcard0/music/try.wav" type="audio/wav"> It seems like your browser doesn't support audio </audio> For video; <video controls loop autoplay muted> <source src="file:///storage/sdcard0/movies/driver.mp4" type="video/mp4"> <source src=" file:///storage/emulated/0/videos/funny.mp4" type="video/mp4"> Sorry your browser doesn't support video </video>

17th Feb 2021, 3:23 PM
Ssenyonjo
Ssenyonjo - avatar
2 Réponses
0
You have to use an external source. Code playground can not access your internal storage.
17th Feb 2021, 3:25 PM
Chris Coder
Chris Coder - avatar
0
Okay thank you Chris.Is that the same issue for the browser?
17th Feb 2021, 4:07 PM
Ssenyonjo
Ssenyonjo - avatar